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)
committerMark Brown <broonie@kernel.org>
Wed, 5 Aug 2020 15:53:48 +0000 (16:53 +0100)
commitae1ba50f1e706dfd7ce402ac52c1f1f10becad68
tree5d1ed35dd0443895af9c0275b6589a75a95aaae3
parentddf75be47ca748f8b12d28ac64d624354fddf189
spi: stm32: clear only asserted irq flags on interrupt

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>
drivers/spi/spi-stm32.c