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:41:17 +0000 (14:41 +0200)
commitdb1002f04995171ba3cac98d19f9e444b69b8c48
treecfb1d998b7f6795c10c5587c5547deb100b223ad
parentae3fe727ddc3b261477f15da883d6fb7341a0219
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