1. 22 6月, 2011 3 次提交
  2. 24 3月, 2011 2 次提交
  3. 02 3月, 2011 1 次提交
  4. 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
  5. 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
  6. 22 10月, 2010 1 次提交
    • 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
  7. 13 10月, 2010 1 次提交
  8. 01 8月, 2010 1 次提交
    • G
      of/platform: Register of_platform_drivers with an "of:" prefix · 7fb8f881
      Grant Likely 提交于
      Currently there are some drivers in tree which register both a
      platform_driver and an of_platform_driver with the same name.  This is
      a temporary situation until all the relevant of_platform_drivers are
      converted to be normal platform_drivers.  Until then, this patch gives
      all the of_platform_drivers an "of:" prefix to protect against bogus
      matches and namespace conflicts.
      7fb8f881
  9. 30 7月, 2010 1 次提交
  10. 24 7月, 2010 5 次提交
  11. 19 7月, 2010 2 次提交
  12. 15 7月, 2010 1 次提交
    • G
      drivers/of: fix build error when CONFIG_PPC_DCR is set · 596c955c
      Grant Likely 提交于
      Commit 94c09319 (of:
      Merge of_device_alloc() and of_device_make_bus_id()) moved code that
      does calls a dcr routine without including the correct header which
      causes the following build error on some powerpc configurations:
      
      drivers/of/platform.c: In function 'of_device_make_bus_id':
      drivers/of/platform.c:437: error: implicit declaration of function 'of_translate_dcr_address'
      
      This patch adds the appropriate header to drivers/of/platform.c
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      596c955c
  13. 06 7月, 2010 4 次提交
    • G
      of: Fix missing include · 50ef5284
      Grant Likely 提交于
      Fix a build failure on ARM
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      50ef5284
    • G
      of/device: populate platform_device (of_device) resource table on allocation · ac80a51e
      Grant Likely 提交于
      When allocating a platform_device to represent an OF node, also allocate
      space for the resource table and populate it with IRQ and reg property
      information.  This change is in preparation for merging the
      of_platform_bus_type with the platform_bus_type so that existing
      platform_driver code can retrieve base addresses and IRQs data.
      
      Background: a previous commit removed struct of_device and made it a
      #define alias for platform_device.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Grant Likely <grant.likely@secretlab.ca>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: microblaze-uclinux@itee.uq.edu.au
      CC: linuxppc-dev@ozlabs.org
      CC: devicetree-discuss@lists.ozlabs.org
      ac80a51e
    • G
      of: Merge of_device_alloc() and of_device_make_bus_id() · 94c09319
      Grant Likely 提交于
      This patch merges the common routines of_device_alloc() and
      of_device_make_bus_id() from powerpc and microblaze.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Grant Likely <grant.likely@secretlab.ca>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: microblaze-uclinux@itee.uq.edu.au
      CC: linuxppc-dev@ozlabs.org
      CC: devicetree-discuss@lists.ozlabs.org
      94c09319
    • G
      of/device: Merge of_platform_bus_probe() · 5fd200f3
      Grant Likely 提交于
      Merge common code between PowerPC and microblaze.  This patch merges
      the code that scans the tree and registers devices.  The functions
      merged are of_platform_bus_probe(), of_platform_bus_create(), and
      of_platform_device_create().
      
      This patch also move the of_default_bus_ids[] table out of a Microblaze
      header file and makes it non-static.  The device ids table isn't merged
      because powerpc and microblaze use different default data.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Grant Likely <grant.likely@secretlab.ca>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: microblaze-uclinux@itee.uq.edu.au
      CC: linuxppc-dev@ozlabs.org
      5fd200f3
  14. 22 5月, 2010 3 次提交
  15. 30 10月, 2009 1 次提交
  16. 14 5月, 2008 1 次提交
  17. 06 2月, 2008 1 次提交
  18. 18 10月, 2007 1 次提交
  19. 20 7月, 2007 1 次提交