aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorMatthias Schiffer <[email protected]>2022-03-31 13:08:19 +0200
committerMark Brown <[email protected]>2022-04-06 15:50:09 +0100
commit97e4827d775faa9a32b5e1a97959c69dd77d17a3 (patch)
tree1338ca3c2286c575d8e7d7ceb51dc0c642cbebaf /tools/testing/selftests/bpf/prog_tests
parent409543cec01a84610029d6440c480c3fdd7214fb (diff)
spi: cadence-quadspi: fix protocol setup for non-1-1-X operations
cqspi_set_protocol() only set the data width, but ignored the command and address width (except for 8-8-8 DTR ops), leading to corruption of all transfers using 1-X-X or X-X-X ops. Fix by setting the other two widths as well. While we're at it, simplify the code a bit by replacing the CQSPI_INST_TYPE_* constants with ilog2(). Tested on a TI AM64x with a Macronix MX25U51245G QSPI flash with 1-4-4 read and write operations. Signed-off-by: Matthias Schiffer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions