<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/of/irq.c, branch linux-3.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-10-17T20:53:02Z</updated>
<entry>
<title>of/irq: sparse fixes</title>
<updated>2012-10-17T20:53:02Z</updated>
<author>
<name>Kim Phillips</name>
</author>
<published>2012-10-09T00:42:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d2e4151821dc4d1db414de287f6e3503c1718815'/>
<id>urn:sha1:d2e4151821dc4d1db414de287f6e3503c1718815</id>
<content type='text'>
drivers/of/irq.c:195:57: warning: restricted __be32 degrades to integer
drivers/of/irq.c:196:51: warning: restricted __be32 degrades to integer
drivers/of/irq.c:199:57: warning: restricted __be32 degrades to integer
drivers/of/irq.c:201:58: warning: restricted __be32 degrades to integer
drivers/of/irq.c:470:37: warning: incorrect type in assignment (different modifiers)
drivers/of/irq.c:470:37:    expected int ( *[usertype] irq_init_cb )( ... )
drivers/of/irq.c:470:37:    got void const *const data
drivers/of/irq.c:96:5: error: symbol 'of_irq_map_raw' redeclared with different type (originally declared at include/linux/of_irq.h:61) - incompatible argument 2 (different base types)

drivers/of/of_pci_irq.c:91:40: warning: incorrect type in argument 2 (different base types)
drivers/of/of_pci_irq.c:91:40:    expected unsigned int const [usertype] *intspec
drivers/of/of_pci_irq.c:91:40:    got restricted __be32 *&lt;noident&gt;
drivers/of/of_pci_irq.c:91:53: warning: incorrect type in argument 4 (different base types)
drivers/of/of_pci_irq.c:91:53:    expected unsigned int const [usertype] *addr
drivers/of/of_pci_irq.c:91:53:    got restricted __be32 *&lt;noident&gt;

Signed-off-by: Kim Phillips &lt;kim.phillips@freescale.com&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>DT: export of_irq_to_resource_table()</title>
<updated>2012-09-06T16:01:53Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2012-08-26T07:13:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4f8bf220e415318c739243aaeb2471cf5e8c911'/>
<id>urn:sha1:a4f8bf220e415318c739243aaeb2471cf5e8c911</id>
<content type='text'>
Trivial patch that exports the of_irq_to_resource_table() symbol so that
modules can use it.

Signed-off-by: John Crispin &lt;blogic@openwrt.org&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>devicetree: add helper inline for retrieving a node's full name</title>
<updated>2012-07-06T12:16:34Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-06-15T17:50:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74a7f08448adea6cb47cd9b260c98ff168117e92'/>
<id>urn:sha1:74a7f08448adea6cb47cd9b260c98ff168117e92</id>
<content type='text'>
The pattern (np ? np-&gt;full_name : "&lt;none&gt;") is rather common in the
kernel, but can also make for quite long lines.  This patch adds a new
inline function, of_node_full_name() so that the test for a valid node
pointer doesn't need to be open coded at all call sites.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Paul Mundt &lt;lethal@linux-sh.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>of/irq: Add interrupts-names property to name an irq resource</title>
<updated>2012-01-04T07:33:15Z</updated>
<author>
<name>Benoit Cousson</name>
</author>
<published>2011-12-05T14:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=661db794eb8179c7bea02f159bb691a2fff4a8e0'/>
<id>urn:sha1:661db794eb8179c7bea02f159bb691a2fff4a8e0</id>
<content type='text'>
Add a interrupts-names property to allow the possibility to provide a name
to any interrupts entries.  If the name is available, use it to name the
resource, otherwise keep the device full name.

Signed-off-by: Benoit Cousson &lt;b-cousson@ti.com&gt;
Cc: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Rob Herring &lt;rob.herring@calxeda.com&gt;
[grant.likely: use "interrupt-names" and tidy documentation]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/irq: Get rid of NO_IRQ usage</title>
<updated>2011-12-07T17:06:37Z</updated>
<author>
<name>Anton Vorontsov</name>
</author>
<published>2011-12-06T23:16:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77a7300abad7fe01891b400e88d746f97307ee5a'/>
<id>urn:sha1:77a7300abad7fe01891b400e88d746f97307ee5a</id>
<content type='text'>
PPC32/64 defines NO_IRQ to zero, so no problems expected.
ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support,
which returns correct ('0') value in 'no irq' case. So everything
should be fine.

Other arches might break if some of their OF drivers rely on NO_IRQ
being not 0. If so, the drivers must be fixed, finally.

[ Rob Herring points out that microblaze should be fixed, and has posted
  a patch for testing for that.   - Linus ]

Signed-off-by: Anton Vorontsov &lt;anton.vorontsov@linaro.org&gt;
Acked-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>of/irq: of_irq_init: add check for parent equal to child node</title>
<updated>2011-11-29T14:22:40Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2011-11-28T02:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7fb6d0adb86ed1c5290e754092a5a1e3de76ee9'/>
<id>urn:sha1:d7fb6d0adb86ed1c5290e754092a5a1e3de76ee9</id>
<content type='text'>
With the revert of "of/irq: of_irq_find_parent: check for parent equal to
child" (dc9372808412edb), we need another way to handle parent node equal
to the child node. This can simply be handled in of_irq_init by checking
for this condition.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
Tested-by: Pawel Moll &lt;pawel.moll@arm.com&gt;
Tested-by: Stephen Warren &lt;swarren@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Revert "of/irq: of_irq_find_parent: check for parent equal to child"</title>
<updated>2011-11-22T23:09:20Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2011-11-22T23:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4bbb02934e4511d9083f15c23e90703482e84ad'/>
<id>urn:sha1:b4bbb02934e4511d9083f15c23e90703482e84ad</id>
<content type='text'>
This reverts commit dc9372808412edbc653a675a526c2ee6c0c14a91.

As requested by Ben Herrenschmidt:
  "This breaks some powerpc platforms at least.  The practice of having
   a node provide an explicit "interrupt-parent" property pointing to
   itself is an old trick that we've used in the past to allow a
   device-node to have interrupts routed to different controllers.

   In that case, the node also contains an interrupt-map, so the node is
   its own parent, the interrupt resolution hits the map, which then can
   route each individual interrupt to a different parent."

Grant says:
  "Ah, nuts, yes that is broken then.  Yes, please revert the commit and
   Rob &amp; I will come up with a better solution.

   Rob, I think it can be done by explicitly checking for np ==
   desc-&gt;interrupt_parent in of_irq_init() instead of relying on
   of_irq_find_parent() returning NULL."

Requested-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Rob Herring &lt;rob.herring@calxeda.com&gt;
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linuxppc-dev &lt;linuxppc-dev@lists.ozlabs.org&gt;
Cc: Tanmay Inamdar &lt;tinamdar@apm.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'next/dt' of git://git.linaro.org/people/arnd/arm-soc</title>
<updated>2011-11-02T04:02:35Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2011-11-02T04:02:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=367069f16e32e188d4687fe2c3e30f2ca583836f'/>
<id>urn:sha1:367069f16e32e188d4687fe2c3e30f2ca583836f</id>
<content type='text'>
* 'next/dt' of git://git.linaro.org/people/arnd/arm-soc:
  ARM: gic: use module.h instead of export.h
  ARM: gic: fix irq_alloc_descs handling for sparse irq
  ARM: gic: add OF based initialization
  ARM: gic: add irq_domain support
  irq: support domains with non-zero hwirq base
  of/irq: introduce of_irq_init
  ARM: at91: add at91sam9g20 and Calao USB A9G20 DT support
  ARM: at91: dt: at91sam9g45 family and board device tree files
  arm/mx5: add device tree support for imx51 babbage
  arm/mx5: add device tree support for imx53 boards
  ARM: msm: Add devicetree support for msm8660-surf
  msm_serial: Add devicetree support
  msm_serial: Use relative resources for iomem

Fix up conflicts in arch/arm/mach-at91/{at91sam9260.c,at91sam9g45.c}
</content>
</entry>
<entry>
<title>of/irq: introduce of_irq_init</title>
<updated>2011-10-31T13:03:22Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2011-09-20T20:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c71a54b0820179e53483d5220cdef1a0df8d5bd1'/>
<id>urn:sha1:c71a54b0820179e53483d5220cdef1a0df8d5bd1</id>
<content type='text'>
of_irq_init will scan the devicetree for matching interrupt controller
nodes. Then it calls an initialization function for each found controller
in the proper order with parent nodes initialized before child nodes.

Based on initial pseudo code from Grant Likely.

Changes in v4:
- Drop unnecessary empty list check
- Be more verbose on errors
- Simplify "if (!desc) WARN_ON(1)" to "if (WARN_ON(!desc))"

Changes in v3:
- add missing kfree's found by Jamie
- Implement Grant's comments to simplify the init loop
- fix function comments

Changes in v2:
- Complete re-write of list searching code from Grant Likely

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
Reviewed-by: Jamie Iles &lt;jamie@jamieiles.com&gt;
Tested-by: Thomas Abraham &lt;thomas.abraham@linaro.org&gt;
Acked-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/irq: of_irq_find_parent: check for parent equal to child</title>
<updated>2011-10-05T12:39:37Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2011-09-20T18:02:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc9372808412edbc653a675a526c2ee6c0c14a91'/>
<id>urn:sha1:dc9372808412edbc653a675a526c2ee6c0c14a91</id>
<content type='text'>
An interrupt controller may often implicitly inherit itself from a parent
node when in fact the controller is the interrupt root controller. Guard
against the case of child == parent and return NULL in this case.

This can also be fixed by adding an explicit "interrupt-parent;" to a root
interrupt controller node.

Based on code from Grant Likely.

Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
Cc: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
</feed>
