1. 04 8月, 2011 1 次提交
  2. 03 8月, 2011 1 次提交
  3. 02 8月, 2011 1 次提交
  4. 01 8月, 2011 1 次提交
  5. 29 7月, 2011 1 次提交
  6. 27 7月, 2011 2 次提交
  7. 24 7月, 2011 1 次提交
  8. 19 7月, 2011 1 次提交
  9. 08 7月, 2011 1 次提交
  10. 07 7月, 2011 1 次提交
  11. 04 7月, 2011 1 次提交
  12. 01 7月, 2011 1 次提交
  13. 29 6月, 2011 1 次提交
  14. 22 6月, 2011 4 次提交
  15. 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
  16. 11 5月, 2011 1 次提交
  17. 20 4月, 2011 1 次提交
  18. 31 3月, 2011 1 次提交
  19. 24 3月, 2011 4 次提交
  20. 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
  21. 02 3月, 2011 1 次提交
  22. 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
  23. 24 2月, 2011 1 次提交
  24. 05 2月, 2011 1 次提交
  25. 16 1月, 2011 1 次提交
  26. 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
  27. 02 1月, 2011 1 次提交
  28. 30 12月, 2010 5 次提交
  29. 24 12月, 2010 1 次提交
    • D
      of/i2c: Fix request module by alias · 02086264
      David Daney 提交于
      If we are registering an i2c device that has a device tree node like
      this real-world example:
      
            rtc@68 {
              compatible = "dallas,ds1337";
              reg = <0x68>;
            };
      
      of_i2c_register_devices() will try to load a module called ds1337.ko.
      There is no such module, so it will fail.  If we look in modules.alias
      we will find entries like these:
      
      .
      .
      .
      alias i2c:ds1339 rtc_ds1307
      alias i2c:ds1338 rtc_ds1307
      alias i2c:ds1337 rtc_ds1307
      alias i2c:ds1307 rtc_ds1307
      alias i2c:ds1374 rtc_ds1374
      .
      .
      .
      
      The module we want is really called rtc_ds1307.ko.  If we request a
      module called "i2c:ds1337", the userspace module loader will do the
      right thing (unless it is busybox) and load rtc_ds1307.ko.  So we add
      the I2C_MODULE_PREFIX to the request_module() string.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      02086264