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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:03:42 +0000 (17:03 +0100)
commit7765b5c2c192ecf73d045b6a8093e3dd95e8d6ea
treef0dd4b98831b943d877342485f244460f53c896a
parent507b9bce21135bfedc43fac7c72335b631cb5598
spi: stm32: make spurious and overrun interrupts visible

[ Upstream commit c64e7efe46b7de21937ef4b3594d9b1fc74f07df ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-stm32.c