From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Tue, 11 Dec 2012 08:13:33 +0100 Subject: [PATCH 2/3] ARM: Orion: Bind the orion bridge interrupt controller through DT In-Reply-To: <20121211065813.GA14843@obsidianresearch.com> References: <1355188683-18208-1-git-send-email-jgunthorpe@obsidianresearch.com> <1355188683-18208-2-git-send-email-jgunthorpe@obsidianresearch.com> <20121211062430.GD25466@lunn.ch> <20121211065813.GA14843@obsidianresearch.com> Message-ID: <20121211071333.GR17242@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Dec 10, 2012 at 11:58:13PM -0700, Jason Gunthorpe wrote: > > > + bridge_irq = irq_of_parse_and_map(np, 0); > > > + /* FIXME: irq_of_parse_and_map returns 0 on error, but on Dove the > > > + * bridge IRQ is 0. > > > + if (!bridge_irq) > > > + return -ENODEV;*/ > > > + > > > + return orion_bridge_irq_init(bridge_irq, -1, base, np); > > > > So does this mean for Dove it will currently always fail? > > I guess that is hard to read without syntax hi-lighting, the 'if' is > also commented out. > > I was hopefull it would work as is, but looking deeper at > irq_of_parse_and_map and its call tree makes me doubtfull now.. > > Fixing irq_of_parse_and_map is way to big a job for me :( Hi Jason https://lwn.net/Articles/470820/ I don't think its fixable. > What to do from here? Add a dummy 0 interrupt to dove? Take dove out > of this patch series? We need to see how other machine remap 0 to some other value and implement that for Dove. Andrew