irqchip: irq-bcm2836: Remove regmap and syscon use
authorPhil Elwell <phil@raspberrypi.org>
Tue, 23 Jan 2018 16:52:45 +0000 (16:52 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:35 +0000 (16:32 +0100)
commita625875261ec76ef5a789b63ad8188d18f34f9d6
tree505775c2956d842c6aa5681833bccbe70e2e4e8b
parente75d20e4910d33943c9750f87bd0d00154016ae0
irqchip: irq-bcm2836: Remove regmap and syscon use

The syscon node defines a register range that duplicates that used by
the local_intc node on bcm2836/7. Since irq-bcm2835 and irq-bcm2836 are
built in and always present together (both drivers are enabled by
CONFIG_ARCH_BCM2835), it is possible to replace the syscon usage with a
global variable that simplifies the code. Doing so does lose the
locking provided by regmap, but as only one side is using the regmap
interface (irq-bcm2835 uses readl and write) there is no loss of
atomicity.

See: https://github.com/raspberrypi/firmware/issues/926

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/irqchip/irq-bcm2835.c
drivers/irqchip/irq-bcm2836.c