]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irqdomain: Allow quiet failure mode
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 May 2013 01:37:43 +0000 (11:37 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 6 May 2013 01:37:43 +0000 (11:37 +1000)
commit5fe0c1f2f0dca3351536284b0180a79f341b7854
tree20e7cc0ae006c8e21fb476d27eeed30771262706
parentf3d40c2532fee15a30d7a364ac365c21748a4a95
irqdomain: Allow quiet failure mode

Some interrupt controllers refuse to map interrupts marked as
"protected" by firwmare. Since we try to map everyting in the
device-tree on some platforms, we end up with a lot of nasty
WARN's in the boot log for what is a normal situation on those
machines.

This defines a specific return code (-EPERM) from the host map()
callback which cause irqdomain to fail silently.

MPIC is updated to return this when hitting a protected source
printing only a single line message for diagnostic purposes.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c
kernel/irq/irqdomain.c