Robin Gong 809b1b04df
spi: introduce fallback to pio
Add fallback to pio mode in case dma transfer failed with error status
SPI_TRANS_FAIL_NO_START.
If spi client driver want to enable this feature please set xfer->error in
the proper place such as dmaengine_prep_slave_sg() failure detect(but no
any data put into spi bus yet). Besides, add master->fallback checking in
its can_dma() so that spi core could switch to pio next time. Please refer
to spi-imx.c.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/1592347329-28363-2-git-send-email-yibin.gong@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-06-23 13:38:14 +01:00
..
2020-06-10 17:27:28 +02:00
2020-06-11 12:42:14 -07:00
2020-06-23 13:38:14 +01:00
2020-06-13 13:09:38 -07:00
2020-06-05 15:11:50 -07:00
2020-06-06 11:01:58 -07:00
2020-06-01 20:26:07 +02:00
2020-06-11 16:07:33 -07:00