diff options
author | Théo Lebrun <[email protected]> | 2024-04-05 17:02:16 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-04-08 15:18:10 +0100 |
commit | 563f8598cbc246a81d256e0e888dc085504caa90 (patch) | |
tree | d93f108f5038df0a072c00721e50b24f5d0a84e4 /lib/test_fortify/write_overflow-memcpy.c | |
parent | dcc594aef1bf3a6a49b77ad2c0348d894b7cd956 (diff) |
spi: cadence-qspi: minimise register accesses on each op if !DTR
cqspi_enable_dtr() is called for each operation, commands or not, reads
or writes. It writes CQSPI_REG_CONFIG then waits for idle (three
successful reads). Skip that in the no-DTR case if DTR is already
disabled.
It cannot be skipped in the DTR case as cqspi_setup_opcode_ext() writes
to a register and we must wait for idle state.
According to ftrace, the average cqspi_exec_mem_op() call goes from
85.4µs to 83.6µs when reading 235M over UBIFS on an octal flash.
Signed-off-by: Théo Lebrun <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions