diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2022-04-08 11:40:26 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2022-04-26 09:54:41 +0300 |
commit | 20ced4b22af212874e033a64567b82b469dcd612 (patch) | |
tree | dea81b95d88c906fd0507607243cfdd8cf6ca0c7 | |
parent | 66692917003cd77ec0271b5c197aded70d1ed14b (diff) |
spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller
Use the spi_mem_default_supports_op() core helper in order to take into
account the buswidth specified by the user in device tree.
Fixes: 24c8ff4684 ("spi: Add Atmel QuadSPI driver")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
-rw-r--r-- | drivers/spi/atmel-quadspi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 098298336da..cb64119f972 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -438,6 +438,9 @@ static bool atmel_qspi_supports_op(struct spi_slave *slave, { struct atmel_qspi *aq = dev_get_priv(slave->dev->parent); + if (!spi_mem_default_supports_op(slave, op)) + return false; + if (aq->caps->octal) { if (atmel_qspi_sama7g5_find_mode(op) < 0) return false; |