Skip to content

Commit c4d4b76

Browse files
committed
spi: atmel-quadspi: Remove duplicated DTR checks
Remove the DTR checks as they are already handled in spi_mem_default_supports_op(). This code removal was intentionally not done in the previous patch that introduced the use of the spi_mem_default_supports_op() core helper and fixed the buswidth adjustment between SPIMEM and the SPI controller, so that the fix can be easily backported to stable kernels. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 41ddc39 commit c4d4b76

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/spi/atmel-quadspi.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,6 @@ static bool atmel_qspi_supports_op(struct spi_mem *mem,
473473
op->dummy.nbytes == 0)
474474
return false;
475475

476-
/* DTR ops not supported. */
477-
if (op->cmd.dtr || op->addr.dtr || op->dummy.dtr || op->data.dtr)
478-
return false;
479-
if (op->cmd.nbytes != 1)
480-
return false;
481-
482476
return true;
483477
}
484478

0 commit comments

Comments
 (0)