From: horms@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances
Date: Wed, 7 Jan 2015 09:25:44 +0900 [thread overview]
Message-ID: <20150107002541.GA20459@verge.net.au> (raw)
In-Reply-To: <4452252.suqURC1IYD@avalon>
On Tue, Jan 06, 2015 at 04:14:09PM +0200, Laurent Pinchart wrote:
> Hi Geert,
>
> Thank you for the patch.
>
> 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 <laurent.pinchart+renesas@ideasonboard.com>.
>
> This looks correct to me, but shouldn't we concentrate on getting rid of
> legacy code instead ?
Probably, but as we now have this patch I'm inclined to apply it.
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > Fixes: 341eb5465f67437a ("ARM: shmobile: INTC External IRQ pin driver on
> > sh73a0") ---
> > arch/arm/mach-shmobile/setup-sh73a0.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c
> > b/arch/arm/mach-shmobile/setup-sh73a0.c index
> > 354cab111bf17ea6..613ce65184a6648c 100644
> > --- a/arch/arm/mach-shmobile/setup-sh73a0.c
> > +++ b/arch/arm/mach-shmobile/setup-sh73a0.c
> > @@ -595,6 +595,7 @@ static struct platform_device ipmmu_device = {
> >
> > static struct renesas_intc_irqpin_config irqpin0_platform_data = {
> > .irq_base = irq_pin(0), /* IRQ0 -> IRQ7 */
> > + .control_parent = true,
> > };
> >
> > static struct resource irqpin0_resources[] = {
> > @@ -656,6 +657,7 @@ static struct platform_device irqpin1_device = {
> >
> > static struct renesas_intc_irqpin_config irqpin2_platform_data = {
> > .irq_base = irq_pin(16), /* IRQ16 -> IRQ23 */
> > + .control_parent = true,
> > };
> >
> > static struct resource irqpin2_resources[] = {
> > @@ -686,6 +688,7 @@ static struct platform_device irqpin2_device = {
> >
> > static struct renesas_intc_irqpin_config irqpin3_platform_data = {
> > .irq_base = irq_pin(24), /* IRQ24 -> IRQ31 */
> > + .control_parent = true,
> > };
> >
> > static struct resource irqpin3_resources[] = {
>
> --
> Regards,
>
> Laurent Pinchart
>
next prev parent reply other threads:[~2015-01-07 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 13:39 [PATCH] ARM: shmobile: sh73a0 legacy: Set .control_parent for all irqpin instances Geert Uytterhoeven
2015-01-06 14:14 ` Laurent Pinchart
2015-01-07 0:25 ` Simon Horman [this message]
2015-01-07 8:14 ` Geert Uytterhoeven
2015-01-08 0:17 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150107002541.GA20459@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).