]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 6 Jan 2015 13:39:10 +0000 (14:39 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 8 Jan 2015 00:15:16 +0000 (09:15 +0900)
commit96e02ef297153d9967b5cc591db6e7842c3788d3
treeddb9e6f65fd820f96507a2002d34da34cd5eb465
parent06683e7da7593f57b5f0c1ba84a86d3b2d2e7954
ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances

The sh73a0 INTC can't mask interrupts properly most likely due to a
hardware bug. Set the .control_parent flag to delegate masking to the
parent interrupt controller, like was already done for irqpin1.

Without this, accessing the three-axis digital accelerometer ADXL345
on kzm9g through /dev/input/event1 causes an interrupt storm, which
requires a power-cycle to recover from.

This was inspired by a patch for arch/arm/boot/dts/sh73a0.dtsi from
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: 2b21f9a40eb66c89 ("ARM: shmobile: INTC External IRQ pin driver on sh73a0")
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/setup-sh73a0.c