OSDN Git Service

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)
commit8480ca477e916e748c908a19e88d0c52a8f4d8fa
tree4dd1e4eca4a3a21fcb06dbca4a1b2a4ab5a34750
parent49aa6ef0b43912ead9cc5525dca182534d1d6676
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