Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: cadence-qspi: Make sure we filter out unsupported ops

The Cadence driver does not support anything else than repeating the
command opcode twice while in octal DTR mode. Make this clear by
checking for this in the ->supports_op() hook.

Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Miquel Raynal (Schneider Electric) <miquel.raynal@bootlin.com>
Tested-by: Santhosh Kumar K <s-k6@ti.com>
Link: https://patch.msgid.link/20260122-schneider-6-19-rc1-qspi-v4-7-f9c21419a3e6@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Miquel Raynal (Schneider Electric) and committed by
Mark Brown
bee08547 453c5d60

+4
+4
drivers/spi/spi-cadence-quadspi.c
··· 1531 1531 return false; 1532 1532 if (op->data.nbytes && op->data.buswidth != 8) 1533 1533 return false; 1534 + 1535 + /* A single opcode is supported, it will be repeated */ 1536 + if ((op->cmd.opcode >> 8) != (op->cmd.opcode & 0xFF)) 1537 + return false; 1534 1538 } else if (!all_false) { 1535 1539 /* Mixed DTR modes are not supported. */ 1536 1540 return false;