spi: bcm2835: Enable shared interrupt support
authorMartin Sperl <kernel@martin.sperl.org>
Thu, 28 May 2020 18:58:04 +0000 (20:58 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 16:49:54 +0000 (17:49 +0100)
commitecfbd3cf3b8bb73ac6a80ddf430b5912fd4402a6
tree3f4fc92c01c1967b761c3b9c7909dbc45c3d1350
parent118eb0e52eb74b899053a0f46dfe7e178788d23b
spi: bcm2835: Enable shared interrupt support

bcm2711, Rasberry Pi 4's SoC, shares one interrupt for multiple
instances of the bcm2835 SPI controller. So this enables shared
interrupt support for them.

The early bail out in the interrupt routine avoids messing with buffers
of transfers being done by other means. Otherwise, the driver can handle
receiving interrupts asserted by other controllers during an IRQ based
transfer.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20200528185805.28991-1-nsaenzjulienne@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c