]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] mpic: Deal with bogus NIRQ in Feature Reporting Register
authorKumar Gala <galak@kernel.crashing.org>
Wed, 21 May 2008 20:59:23 +0000 (06:59 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 23 May 2008 05:27:26 +0000 (15:27 +1000)
commita692431d9b0d7bc9d1bab1f6aa7d6d1395e55159
treee7818dcd25169b9d9c9ed35723b3cafd2be455fd
parentdfe8cdb9915a94277c0c6293b11934e676246857
[POWERPC] mpic: Deal with bogus NIRQ in Feature Reporting Register

Some chips (like the SoCs from Freescale) report the wrong value in NIRQ
and this causes issues if its doesn't match or exceed the value of
irq_count.

Add a flag that board code can set to just use irq_count instead of
FRR[NIRQ].  Eventually we'll add a device tree property with the number
of sources.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/mpic.c
include/asm-powerpc/mpic.h