spi: stm32: clear only asserted irq flags on interrupt
authorTobias Schramm <t.schramm@manjaro.org>
Tue, 4 Aug 2020 19:51:36 +0000 (21:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:29 +0000 (11:29 +0200)
commit9b04463ab4753797df4d7d8433c35955edfd505f
tree6c36485b992c7e39e5a04adacc0f65d2f050598e
parenta5d6a17faf199bd5dafe6f3572576ac153c02a27
spi: stm32: clear only asserted irq flags on interrupt

[ Upstream commit ae1ba50f1e706dfd7ce402ac52c1f1f10becad68 ]

Previously the stm32h7 interrupt thread cleared all non-masked interrupts.
If an interrupt was to occur during the handling of another interrupt its
flag would be unset, resulting in a lost interrupt.
This patches fixes the issue by clearing only the currently set interrupt
flags.

Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
Link: https://lore.kernel.org/r/20200804195136.1485392-1-t.schramm@manjaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-stm32.c