1. 23 11月, 2011 1 次提交
    • L
      Revert "of/irq: of_irq_find_parent: check for parent equal to child" · b4bbb029
      Linus Torvalds 提交于
      This reverts commit dc937280.
      
      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 & I will come up with a better solution.
      
         Rob, I think it can be done by explicitly checking for np ==
         desc->interrupt_parent in of_irq_init() instead of relying on
         of_irq_find_parent() returning NULL."
      Requested-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>
      Cc: Tanmay Inamdar <tinamdar@apm.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b4bbb029
  2. 31 10月, 2011 1 次提交
  3. 05 10月, 2011 1 次提交
    • R
      of/irq: of_irq_find_parent: check for parent equal to child · dc937280
      Rob Herring 提交于
      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: NRob Herring <rob.herring@calxeda.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      dc937280
  4. 20 4月, 2011 1 次提交
  5. 13 10月, 2010 1 次提交
  6. 25 7月, 2010 2 次提交
  7. 06 7月, 2010 3 次提交
    • G
      of: Use full node name in resource structures · d3571c3a
      Grant Likely 提交于
      Resource names appear in human readable output, so when extracting IRQ
      and address resources from a device tree node, use the full node name
      to give proper context in places like /proc/iomem.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: microblaze-uclinux@itee.uq.edu.au
      CC: linuxppc-dev@ozlabs.org
      d3571c3a
    • R
      of/irq: little endian fixes · a7c194b0
      Rob Herring 提交于
      Fix some endian issues in the irq mapping OF code.
      Signed-off-by: NRob Herring <r.herring@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Wolfram Sang <w.sang@pengutronix.de>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      a7c194b0
    • G
      of/irq: merge irq mapping code · 7dc2e113
      Grant Likely 提交于
      Merge common irq mapping code between PowerPC and Microblaze.
      
      This patch merges of_irq_find_parent(), of_irq_map_raw() and
      of_irq_map_one().  The functions are dependent on one another, so all
      three are merged in a single patch.  Other than cosmetic difference
      (ie. DBG() vs. pr_debug()), the implementations are identical.
      
      of_irq_to_resource() is also merged, but in this case the
      implementations are different.  This patch drops the microblaze version
      and uses the powerpc implementation unchanged.  The microblaze version
      essentially open-coded irq_of_parse_and_map() which it does not need
      to do.  Therefore the powerpc version is safe to adopt.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      7dc2e113
  8. 29 6月, 2010 1 次提交