From: horms@verge.net.au (Simon Horman) Date: Thu, 8 Jan 2015 09:17:31 +0900 Subject: [PATCH] ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances In-Reply-To: References: <1420551550-27512-1-git-send-email-geert+renesas@glider.be> <4452252.suqURC1IYD@avalon> Message-ID: <20150108001731.GE18943@verge.net.au> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jan 07, 2015 at 09:14:19AM +0100, Geert Uytterhoeven wrote: > Hi Laurent, > > On Tue, Jan 6, 2015 at 3:14 PM, Laurent Pinchart > wrote: > > On Tuesday 06 January 2015 14:39:10 Geert Uytterhoeven wrote: > >> 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 . > > > > This looks correct to me, but shouldn't we concentrate on getting rid of > > legacy code instead ? > > Sure. > > But this is a serious bug, which allows to crash the kernel from user space. > Worse, a simple reset is not sufficient to recover. You need to power-cycle > the board. With that in mind I have queued this up as a fix for v3.19. For (my) reference, 341eb5465f67437a ("ARM: shmobile: INTC External IRQ pin driver on sh73a0"), which this patch fixes, was part of v3.9.