]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code
authorDoug Berger <opendmb@gmail.com>
Wed, 20 Feb 2019 22:15:28 +0000 (14:15 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 21 Feb 2019 10:32:34 +0000 (10:32 +0000)
commita3c2eac99a38a0fc6457a1b7c8cdf4657ea96d4b
tree21f1d99d5fb5ba05be9ba1b3cca849233505020e
parente109e0e6dcc4ae365282685322ae73406f0989af
irqchip/brcmstb-l2: Use _irqsave locking variants in non-interrupt code

Using the irq_gc_lock/irq_gc_unlock functions in the suspend and
resume functions creates the opportunity for a deadlock during
suspend, resume, and shutdown. Using the irq_gc_lock_irqsave/
irq_gc_unlock_irqrestore variants prevents this possible deadlock.

Cc: stable@vger.kernel.org
Fixes: 4e335d0ff7d80 ("irqchip: brcmstb-l2: Add Broadcom Set Top Box Level-2 interrupt controller")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
[maz: tidied up $SUBJECT]
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-brcmstb-l2.c