export of_irq_count
PATCH 1/1 export of_irq_count
From: Alan Tull <[email protected]>
export of_irq_count so it can be used in drivers that are built as modules.
--- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
@@ -393,6 +393,7 @@ int of_irq_count(struct device_node *dev)return nr; } +EXPORT_SYMBOL_GPL (of_irq_count);/** * of_irq_to_resource_table - Fill in resource table with node's IRQ info
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · delicious quinoa
From: Alan Tull <[email protected]>
export
of_irq_countso it can be used in drivers that are built as modules.
What drivers? Drivers generally should be using resources rather than this function directly.
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Rob Herring
Quoted 4 lines · delicious quinoa
From: Alan Tull <[email protected]>
export
of_irq_countso it can be used in drivers that are built as modules.What drivers? Drivers generally should be using resources rather than this function directly.
It's for the DesignWare GPIO driver I've been upstreaming. The DesignWare IP can be configured to be one irq for all the gpios or one irq per gpio. I want to support both cases. So I need to know how many irqs are specified in the device tree.
Alan
aka
delicious quinoa
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Rob Herring
Acked-byQuoted 8 lines · delicious quinoa
Quoted 7 lines · Rob Herring
Quoted 4 lines · delicious quinoa
From: Alan Tull <[email protected]>
export
of_irq_countso it can be used in drivers that are built as modules.
Quoted 7 lines
Quoted 2 lines
What drivers? Drivers generally should be using resources rather than this function directly.
It's for the DesignWare GPIO driver I've been upstreaming. The DesignWare IP can be configured to be one irq for all the gpios or one irq per gpio. I want to support both cases. So I need to know how many irqs are specified in the device tree.
Okay. You should merge this as part of that then, so:
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Rob Herring
Quoted 11 lines · delicious quinoa
Quoted 9 lines · Rob Herring
Quoted 4 lines · delicious quinoa
From: Alan Tull <[email protected]>
export
of_irq_countso it can be used in drivers that are built as modules.What drivers? Drivers generally should be using resources rather than this function directly.
Quoted 8 lines
Quoted 4 lines
It's for the DesignWare GPIO driver I've been upstreaming. The DesignWare IP can be configured to be one irq for all the gpios or one irq per gpio. I want to support both cases. So I need to know how many irqs are specified in the device tree.
Okay. You should merge this as part of that then, so:
Acked-by Rob Herring <[email protected]>
I think we should be consistent and there are other methods how to solve this. I have sent the same patch long time ago.
https://lkml.org/lkml/2013/5/30/265
Thanks,
Michal
Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform