Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/xilinx: Try to fall back if xlnx,kind-of-intr not provided

The powerpc dts file does not have the xlnx,kind-of-intr property.
Instead of erroring out, give a warning instead. And attempt to
continue to probe the interrupt controller while assuming
kind-of-intr is 0x0 as a fall back.

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

authored by

Zubair Lutfullah Kakakhel and committed by
Marc Zyngier
8a11da59 9689c99e

+2 -2
+2 -2
drivers/irqchip/irq-xilinx-intc.c
··· 179 179 180 180 ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask); 181 181 if (ret < 0) { 182 - pr_err("irq-xilinx: unable to read xlnx,kind-of-intr\n"); 183 - goto err_alloc; 182 + pr_warn("irq-xilinx: unable to read xlnx,kind-of-intr\n"); 183 + irqc->intr_mask = 0; 184 184 } 185 185 186 186 if (irqc->intr_mask >> nr_irq)