Skip to content

Commit 41ddc39

Browse files
committed
spi: atmel-quadspi.c: 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: 0e6aae0 ("spi: Add QuadSPI driver for Atmel SAMA5D2") Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent aefbe8d commit 41ddc39

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ static bool atmel_qspi_supports_op(struct spi_mem *mem,
455455
{
456456
struct atmel_qspi *aq = spi_controller_get_devdata(mem->spi->master);
457457

458+
if (!spi_mem_default_supports_op(mem, op))
459+
return false;
460+
458461
if (aq->caps->octal) {
459462
if (atmel_qspi_sama7g5_find_mode(op) < 0)
460463
return false;

0 commit comments

Comments
 (0)