Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1502218
| From | Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [Patch v5 05/12] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided |
| Date | 2016-10-17 19:00 +0200 |
| Message-ID | <stjqy-61C-41@gated-at.bofh.it> (permalink) |
| References | <stjqx-61C-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The powerpc dts file upstream 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.
Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
---
V5 new patch
---
drivers/irqchip/irq-xilinx-intc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-xilinx-intc.c b/drivers/irqchip/irq-xilinx-intc.c
index dbf8b0c..485fb11 100644
--- a/drivers/irqchip/irq-xilinx-intc.c
+++ b/drivers/irqchip/irq-xilinx-intc.c
@@ -197,8 +197,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);
if (ret < 0) {
- pr_err("%s: unable to read xlnx,kind-of-intr\n", __func__);
- goto err_alloc;
+ pr_warn("%s: unable to read xlnx,kind-of-intr\n", __func__);
+ irqc->intr_mask = 0;
}
if (irqc->intr_mask >> nr_irq)
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[Patch v5 05/12] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> - 2016-10-17 19:00 +0200
csiph-web