spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller
authorTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 6 Apr 2022 13:36:03 +0000 (16:36 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 13 Apr 2022 15:43:12 +0000 (16:43 +0100)
commit8c235cc25087495c4288d94f547e9d3061004991
treeddd83365048945790048c9a1ae595b2a6d24130e
parentf1d388f216aeb41a5df518815ae559d14a6d438e
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.

Cc: <stable@vger.kernel.org>
Fixes: 0e6aae08e9ae ("spi: Add QuadSPI driver for Atmel SAMA5D2")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20220406133604.455356-1-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c