提交 8a11da59 编写于 作者: Z Zubair Lutfullah Kakakhel 提交者: Marc Zyngier

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: NMichal Simek <michal.simek@xilinx.com>
Signed-off-by: NZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
上级 9689c99e
...@@ -179,8 +179,8 @@ static int __init xilinx_intc_of_init(struct device_node *intc, ...@@ -179,8 +179,8 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask); ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask);
if (ret < 0) { if (ret < 0) {
pr_err("irq-xilinx: unable to read xlnx,kind-of-intr\n"); pr_warn("irq-xilinx: unable to read xlnx,kind-of-intr\n");
goto err_alloc; irqc->intr_mask = 0;
} }
if (irqc->intr_mask >> nr_irq) if (irqc->intr_mask >> nr_irq)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册