diff options
author | Théo Lebrun <theo.lebrun@bootlin.com> | 2024-04-05 17:02:14 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-08 15:18:09 +0100 |
commit | dcc594aef1bf3a6a49b77ad2c0348d894b7cd956 (patch) | |
tree | 45085052975df0223556388453ffa00a937ab096 /drivers/spi/spi-lm70llp.c | |
parent | 708eafeba9eec51c5bde8efef2a7c22d7113b771 (diff) |
spi: cadence-qspi: store device data pointer in private struct
Avoid of_device_get_match_data() call on each IRQ and each read
operation. Store pointer in `struct cqspi_st` device instance.
End-to-end performance measurements improve with this patch. On a given
octal flash, reading 235M over UBIFS is ~3.4% faster. During that read,
the average cqspi_exec_mem_op() call goes from 85.4µs to 80.7µs
according to ftrace. The worst case goes from 622.4µs to 615.2µs.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://msgid.link/r/20240405-cdns-qspi-mbly-v2-4-956679866d6d@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lm70llp.c')
0 files changed, 0 insertions, 0 deletions