1. 22 6月, 2011 4 次提交
  2. 11 5月, 2011 1 次提交
  3. 20 4月, 2011 1 次提交
  4. 31 3月, 2011 1 次提交
  5. 24 3月, 2011 4 次提交
  6. 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
  7. 02 3月, 2011 1 次提交
  8. 28 2月, 2011 1 次提交
    • G
      dt/powerpc: move of_bus_type infrastructure to ibmebus · 710ac54b
      Grant Likely 提交于
      arch/powerpc/kernel/ibmebus.c is the only remaining user of the
      of_bus_type support code for initializing the bus and registering
      drivers.  All others have either been switched to the vanilla platform
      bus or already have their own infrastructure.
      
      This patch moves the functionality that ibmebus is using out of
      drivers/of/{platform,device}.c and into ibmebus.c where it is actually
      used.  Also renames the moved symbols from of_platform_* to
      ibmebus_bus_* to reflect the actual usage.
      
      This patch is part of moving all of the of_platform_bus_type users
      over to the platform_bus_type.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      710ac54b
  9. 24 2月, 2011 1 次提交
  10. 05 2月, 2011 1 次提交
  11. 16 1月, 2011 1 次提交
  12. 04 1月, 2011 1 次提交
    • G
      of/device: Don't register disabled devices · cd1e6504
      Grant Likely 提交于
      Device nodes with the property status="disabled" are not usable and so
      don't register them when parsing the device tree for devices.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Hollis Blanchard <hollis_blanchard@mentor.com>
      Cc: Deepak Saxena <deepak_saxena@mentor.com>
      Cc: Scott Wood <scottwood@freescale.com>,
      Cc: David Gibson <david@gibson.dropbear.id.au>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      cd1e6504
  13. 02 1月, 2011 1 次提交
  14. 30 12月, 2010 5 次提交
  15. 24 12月, 2010 3 次提交
  16. 09 12月, 2010 1 次提交
  17. 01 11月, 2010 1 次提交
  18. 22 10月, 2010 3 次提交
    • D
      of/mips: Cleanup some include directives/files. · 4c60071c
      David Daney 提交于
      The __init directives should go on the definitions of things, not the
      declaration, also __init is meaningless for inline functions, so
      remove it from prom.h.  This allows us to get rid of a useless
      #include, but most of the rest of them are useless too, so kill them
      as well.
      
      If of_i2c.c needs irq definitions, it should include linux/irq.h
      directly, not assume indirect inclusion via asm/prom.h.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      4c60071c
    • G
      of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch · 32c97689
      Grant Likely 提交于
      This patch refactors the early init parsing of the chosen node so that
      architectures aren't forced to provide an empty implementation of
      early_init_dt_scan_chosen_arch.  Instead, if an architecture wants to
      do something different, it can either use a wrapper function around
      early_init_dt_scan_chosen(), or it can replace it altogether.
      
      This patch was written in preparation to adding device tree support to
      both x86 ad MIPS.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Tested-by: NDavid Daney <ddaney@caviumnetworks.com>
      32c97689
    • G
      of/device: Rework to use common platform_device_alloc() for allocating devices · 7096d042
      Grant Likely 提交于
      The current code allocates and manages platform_devices created from
      the device tree manually.  It also uses an unsafe shortcut for
      allocating the platform_device and the resource table at the same
      time. (which I added in the last rework; sorry).
      
      This patch refactors the code to use platform_device_alloc() for
      allocating new devices.  This reduces the amount of custom code
      implemented by of_platform, eliminates the unsafe alloc trick, and has
      the side benefit of letting the platform_bus code manage freeing the
      device data and resources when the device is freed.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Michal Simek <monstr@monstr.eu>
      7096d042
  19. 13 10月, 2010 5 次提交
  20. 11 10月, 2010 1 次提交
  21. 09 10月, 2010 1 次提交
  22. 06 8月, 2010 1 次提交