Skip to contentSkip to conversation

export of_irq_count

PATCH In review delicious quinoa 3 participants 5 messages Feb 12, 2014 – Feb 13, 2014 4 messages not in the archive Device tree

lore
Share & tools
lore
#0 lore raw

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
index 9bcf2cf..5ed19f3 100644
@@ -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

A message that is not in the archive (sent off-list or not yet received): 1392226444-30507-1-git-send-email-delicious.quinoa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

A message that is not in the archive (sent off-list or not yet received): CAL_JsqLT=w5wDnFBcQdeF5KgpJK76xJhH=ZYJy24CEeV2uQ2aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 9 lines · Rob Herring
Quoted 4 lines · delicious quinoa

From: Alan Tull <[email protected]>

export of_irq_count so 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

A message that is not in the archive (sent off-list or not yet received): CANk1AXTbnBXzxf_WiQAbWKxNhm2wKVrj0O=nDcW7j27i4T3YBw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

Acked-by
#6 lore raw
Quoted 8 lines · delicious quinoa
Quoted 7 lines · Rob Herring
Quoted 4 lines · delicious quinoa

From: Alan Tull <[email protected]>

export of_irq_count so 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

A message that is not in the archive (sent off-list or not yet received): CAL_JsqLFAj_nCpuCg8qVchrfeSJ4HgOpt6ht9URkBuKZ6ztWow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#8 lore raw
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_count so 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:

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