]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/brcmstb-l2: Abstract register accesses
authorDoug Berger <opendmb@gmail.com>
Tue, 19 Sep 2017 00:59:59 +0000 (17:59 -0700)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 19 Oct 2017 09:56:29 +0000 (10:56 +0100)
commitd1a30f905a1c70132c7f7d456f0574f0ae725e16
tree4dd1e4eca4a3a21fcb06dbca4a1b2a4ab5a34750
parentc173c5067c9d1d3e17b1bdad57894ef25e42b953
irqchip/brcmstb-l2: Abstract register accesses

Added register block offsets to the brcmstb_l2_intc_data structure
for the status and mask registers to support reading the active
interupts in an abstracted way.  It seems like an irq_chip method
should have been provided for this, but it's not there yet.

Abstracted the implementation of the handler, suspend, and resume
functions to not use any hard coded register offsets.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-brcmstb-l2.c