1. 13 12月, 2011 2 次提交
    • G
      of: create of_phandle_args to simplify return of phandle parsing data · 15c9a0ac
      Grant Likely 提交于
      of_parse_phandle_with_args() needs to return quite a bit of data.  Rather
      than making each datum a separate **out_ argument, this patch creates
      struct of_phandle_args to contain all the returned data and reworks the
      user of the function.  This patch also enables of_parse_phandle_with_args()
      to return the device node pointer for the phandle node.
      
      This patch also ends up being fairly major surgery to
      of_parse_handle_with_args().  The existing structure didn't work well
      when extending to use of_phandle_args, and I discovered bugs during testing.
      I also took the opportunity to rename the function to be like the
      existing of_parse_phandle().
      
      v2: - moved declaration of of_phandle_args to fix compile on non-DT builds
          - fixed incorrect index in example usage
          - fixed incorrect return code handling for empty entries
      Reviewed-by: NShawn Guo <shawn.guo@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      15c9a0ac
    • G
      gpiolib: output basic details and consolidate gpio device drivers · 64842aad
      Grant Likely 提交于
      This patch adds a kernel message, containing GPIO range and device
      name on successful device registration, and removes duplicate messages from the following drivers:
      	* gpio-adp5588
      	* gpio-bt8xx
      	* gpio-cs5535
      	* gpio-janz-ttl
      	* gpio-nomadik
      	* gpio-pcf857x
      	* gpio-xilinx
      	* drivers/of/gpio.c
      Signed-off-by: NHartmut Knaack <knaack.h@gmx.de>
      [grant.likely@secretlab.ca: squashed 2 patches together]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      64842aad
  2. 08 12月, 2011 1 次提交
  3. 29 11月, 2011 1 次提交
  4. 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
  5. 04 11月, 2011 1 次提交
  6. 01 11月, 2011 3 次提交
  7. 31 10月, 2011 1 次提交
  8. 25 10月, 2011 1 次提交
  9. 05 10月, 2011 3 次提交
  10. 23 9月, 2011 1 次提交
  11. 20 9月, 2011 1 次提交
  12. 04 8月, 2011 1 次提交
  13. 03 8月, 2011 1 次提交
  14. 02 8月, 2011 1 次提交
  15. 01 8月, 2011 1 次提交
  16. 29 7月, 2011 1 次提交
  17. 27 7月, 2011 2 次提交
  18. 24 7月, 2011 1 次提交
  19. 19 7月, 2011 1 次提交
  20. 08 7月, 2011 1 次提交
  21. 07 7月, 2011 1 次提交
  22. 04 7月, 2011 1 次提交
  23. 01 7月, 2011 1 次提交
  24. 29 6月, 2011 1 次提交
  25. 22 6月, 2011 4 次提交
  26. 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
  27. 11 5月, 2011 1 次提交
  28. 20 4月, 2011 1 次提交
  29. 31 3月, 2011 1 次提交
  30. 24 3月, 2011 2 次提交