]> 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)
commit68da21bcce700ce7d3c0732dca6cb91230b95d1f
tree3f4fc92c01c1967b761c3b9c7909dbc45c3d1350
parentea2c42fe555a0288fe36a6c7c9959c8417f53154
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