]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pasemi: Fix Nemo SB600 i8259 interrupts.
authorDarren Stevens <darren@stevens-zone.net>
Wed, 31 Aug 2016 12:24:40 +0000 (13:24 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Sep 2016 07:37:08 +0000 (17:37 +1000)
commit452f23ef99fd1b4c76b45b1d3879b96bb56d6964
tree388165909b9e98d374508470ff2f20c089435687
parenta743b8a4d41bf6c80dfc1b083c5ee8d2de48e722
powerpc/pasemi: Fix Nemo SB600 i8259 interrupts.

The device tree on the Nemo passes all of the i8259 interrupts with
numbers between 212 and 222, and points their interrupt-parent property
to the pasemi-opic, requiring custom patches to the kernel. Fix the
values so that they can be controlled by the generic ppc i8259 code.

Signed-off-by: Darren Stevens <darren@stevens-zone.net>
[mpe: Rework deeply nested if and boundary checks]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c