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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:39:02 +0000 (14:39 +0200)
commit6a3c609feb11d2d5be986d578623cf7a2328e9f1
tree105b82863c1933ab887c6f52b47f611c14eb9e49
parentb1b8f39c2475a1df597e6d1970e25bd64c89d774
spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller

commit 8c235cc25087495c4288d94f547e9d3061004991 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/atmel-quadspi.c