]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04ae75946ef2884b46fa06a950e1316df279f207
tree3f4fc92c01c1967b761c3b9c7909dbc45c3d1350
parentd0e2e34b3896231209a5fff4c87c628644dd85bd
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