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. 04 11月, 2011 1 次提交
  3. 01 11月, 2011 3 次提交
  4. 31 10月, 2011 1 次提交
  5. 25 10月, 2011 1 次提交
  6. 05 10月, 2011 3 次提交
  7. 23 9月, 2011 1 次提交
  8. 20 9月, 2011 1 次提交
  9. 04 8月, 2011 1 次提交
  10. 03 8月, 2011 1 次提交
  11. 02 8月, 2011 1 次提交
  12. 01 8月, 2011 1 次提交
  13. 29 7月, 2011 1 次提交
  14. 27 7月, 2011 2 次提交
  15. 24 7月, 2011 1 次提交
  16. 19 7月, 2011 1 次提交
  17. 08 7月, 2011 1 次提交
  18. 07 7月, 2011 1 次提交
  19. 04 7月, 2011 1 次提交
  20. 01 7月, 2011 1 次提交
  21. 29 6月, 2011 1 次提交
  22. 22 6月, 2011 4 次提交
  23. 08 6月, 2011 1 次提交
    • B
      pci/of: Match PCI devices to OF nodes dynamically · 98d9f30c
      Benjamin Herrenschmidt 提交于
      powerpc has two different ways of matching PCI devices to their
      corresponding OF node (if any) for historical reasons. The ppc64 one
      does a scan looking for matching bus/dev/fn, while the ppc32 one does a
      scan looking only for matching dev/fn on each level in order to be
      agnostic to busses being renumbered (which Linux does on some
      platforms).
      
      This removes both and instead moves the matching code to the PCI core
      itself. It's the most logical place to do it: when a pci_dev is created,
      we know the parent and thus can do a single level scan for the matching
      device_node (if any).
      
      The benefit is that all archs now get the matching for free. There's one
      hook the arch might want to provide to match a PHB bus to its device
      node. A default weak implementation is provided that looks for the
      parent device device node, but it's not entirely reliable on powerpc for
      various reasons so powerpc provides its own.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: NMichal Simek <monstr@monstr.eu>
      Acked-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      98d9f30c
  24. 11 5月, 2011 1 次提交
  25. 20 4月, 2011 1 次提交
  26. 31 3月, 2011 1 次提交
  27. 24 3月, 2011 4 次提交
  28. 03 3月, 2011 1 次提交
    • A
      of/promtree: allow DT device matching by fixing 'name' brokenness (v5) · a74ea43d
      Andres Salomon 提交于
      Commit e2f2a93b, "of/promtree: add package-to-path support to pdt"
      changed dp->name from using the 'name' property to using
      package-to-path.  This fixed /proc/device-tree creation by eliminating
      conflicts between names (the 'name' property provides names like
      'battery', whereas package-to-path provides names like
      '/foo/bar/battery@0', which we stripped to 'battery@0').  However, it
      also breaks of_device_id table matching.
      
      The fix that we _really_ wanted was to keep dp->name based upon
      the name property ('battery'), but based dp->full_name upon
      package-to-path ('battery@0').  This patch does just that.
      
      This changes all users (except SPARC) of promtree to use the full
      result from package-to-path for full_name, rather than stripping the
      directory out.  In practice, the strings end up being exactly the
      same; this change saves time, code, and memory.
      
      SPARC continues to use the existing build_path_component() code.
      
      v2: combine two patches and revert of_pdt_node_name to original version
      v3: use dp->phandle instead of passing around node
      v4: warn/bail out for non-sparc archs if pkg2path is not set
      v5: split of_pdt_build_full_name into sparc & non-sparc versions
      v6: Pass NULL to pkg2path before buf gets assigned.
          Drop check for pkg2path hook on each and every node.
      v7: Don't BUG() when unable to get the full_path; create a
          known-unique name instead.
      Signed-off-by: NAndres Salomon <dilinger@queued.net>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      a74ea43d
  29. 02 3月, 2011 1 次提交