]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: Add generic DW SSI status-check method
authorBaikal Electronics <support@baikalelectronics.ru>
Wed, 7 Oct 2020 23:55:05 +0000 (02:55 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Oct 2020 22:00:18 +0000 (23:00 +0100)
commita334e8da2f49e21ab75c9d3338534c4c932c2f54
tree71f388cd806454ff5566b144b12e390beba94771
parentd9a65aaf0b8316809bab31190228ec2b88ec7d6b
spi: dw: Add generic DW SSI status-check method

The DW SSI errors handling method can be generically implemented for all
types of the transfers: IRQ, DMA and poll-based ones. It will be a
function which checks the overflow/underflow error flags and resets the
controller if any of them is set. In the framework of this commit we make
use of the new method to detect the errors in the IRQ- and DMA-based SPI
transfer execution procedures.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20201007235511.4935-17-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c
drivers/spi/spi-dw-dma.c
drivers/spi/spi-dw.h