spi: cadence-quadspi: allow operations with cmd/addr buswidth >1
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 20 Apr 2022 15:56:16 +0000 (17:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2022 13:01:05 +0000 (14:01 +0100)
commit1aeda0966693574c07c5fa72adf41be43d491f96
treeec3bfbb46f58b50216e977443e0af876b5af50f1
parent28ac902aedd18abf4faf8816b1bea6623d0e9509
spi: cadence-quadspi: allow operations with cmd/addr buswidth >1

With the removal of the incorrect logic of cqspi_set_protocol(), ops with
cmd/addr buswidth >1 are now working correctly.

Tested on a TI AM64x with a Macronix MX25U51245G QSPI flash using 1-4-4
operations.

DTR operations are currently untested, so we leave them disabled for now
(except for the previously allowed 8-8-8 ops).

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://lore.kernel.org/r/20220420155616.281730-2-matthias.schiffer@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c