@@ -391,6 +391,8 @@ extern void irq_domain_associate_many(struct irq_domain *domain,
extern unsigned int irq_create_mapping_affinity(struct irq_domain *host,
irq_hw_number_t hwirq,
const struct irq_affinity_desc *affinity);
+void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args, unsigned int count,
+ struct irq_fwspec *fwspec);
extern unsigned int irq_create_fwspec_mapping(struct irq_fwspec *fwspec);
extern void irq_dispose_mapping(unsigned int virq);
@@ -756,9 +756,8 @@ static int irq_domain_translate(struct irq_domain *d,
return 0;
}
-static void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args,
- unsigned int count,
- struct irq_fwspec *fwspec)
+void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args, unsigned int count,
+ struct irq_fwspec *fwspec)
{
int i;
@@ -768,6 +767,7 @@ static void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args,
for (i = 0; i < count; i++)
fwspec->param[i] = args[i];
}
+EXPORT_SYMBOL_GPL(of_phandle_args_to_fwspec);
unsigned int irq_create_fwspec_mapping(struct irq_fwspec *fwspec)
{
Export of_phandle_args_to_fwspec() to be used by drivers. of_phandle_args_to_fwspec() can be used by drivers to get irq specifier from device node useful while creating hierarchy domain. This was suggested by Marc Zyngier [1]. [1] -> http://lore.kernel.org/r/20190223121143.14c1f150@why.wild-wind.fr.eu.org/ Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> --- include/linux/irqdomain.h | 2 ++ kernel/irq/irqdomain.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-)