ARM: sa1111: finish "allow cascaded IRQs to be used by platforms"
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Jan 2012 00:09:22 +0000 (00:09 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:34:49 +0000 (15:34 +0000)
commitf03ecaa0aa3a3b74b9b9e8341cf7919516c902d5
tree600449a48766ceb7387035229a0a4e7db338c96d
parent1ebcd7654e4e391a36945c937c125995c737c446
ARM: sa1111: finish "allow cascaded IRQs to be used by platforms"

Commit 19851c58e680 (sa1111: allow cascaded IRQs to be used by platforms)
moved the IRQ definitions to the .c file, and added an irq_base member
to the private data structure.

The inerrupt demultiplexer uses irq_base, but the interrupt setup code
does not.  Also, although the commit adds a private data structure to
pass this data, it isn't even referenced, resulting in irq_base being
zero.

We also copied the IRQ numbers from the device info array into the actual
devices, resulting in wrong interrupt numbers passed to the sub-devices.

The net effect of this is that we always overwrite IRQs 0-54, even if
they are allocated elsewhere in the system.

Add the code necessary to setup the private irq_base, and use it in the
IRQ setup code.  Make the SA-1111 probe fail with -EINVAL if there is no
platform data provided.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/sa1111.c
This page took 0.026199 seconds and 5 git commands to generate.