]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: make spurious and overrun interrupts visible
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 5 Feb 2021 18:59:32 +0000 (19:59 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2021 19:17:01 +0000 (19:17 +0000)
commit3ebc0ae3013b59f9c796701835685aa5c6082c95
tree82815c835b9b2e083bcd6ff1f34839a24ebc76ae
parent186916f74bd129f12099060e83526f39382ee8fe
spi: stm32: make spurious and overrun interrupts visible

We do not expect to receive spurious interrupts so rise a warning
if it happens.

RX overrun is an error condition that signals a corrupted RX
stream both in dma and in irq modes. Report the error and
abort the transfer in either cases.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1612551572-495-9-git-send-email-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c