Skip to content
Snippets Groups Projects
  1. Mar 23, 2011
  2. Mar 01, 2011
  3. Feb 28, 2011
    • Grant Likely's avatar
      dt/powerpc: move of_bus_type infrastructure to ibmebus · 710ac54b
      Grant Likely authored
      
      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: default avatarGrant Likely <grant.likely@secretlab.ca>
      710ac54b
  4. Jan 03, 2011
    • Grant Likely's avatar
      of/device: Don't register disabled devices · cd1e6504
      Grant Likely authored
      
      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: default avatarGrant 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
  5. Oct 21, 2010
    • Grant Likely's avatar
      of/device: Rework to use common platform_device_alloc() for allocating devices · 7096d042
      Grant Likely authored
      
      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: default avatarGrant 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
  6. Oct 13, 2010
  7. Aug 01, 2010
    • Grant Likely's avatar
      of/platform: Register of_platform_drivers with an "of:" prefix · 7fb8f881
      Grant Likely authored
      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
  8. Jul 30, 2010
  9. Jul 24, 2010
  10. Jul 19, 2010
  11. Jul 15, 2010
    • Grant Likely's avatar
      drivers/of: fix build error when CONFIG_PPC_DCR is set · 596c955c
      Grant Likely authored
      
      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: default avatarGrant Likely <grant.likely@secretlab.ca>
      596c955c
  12. Jul 05, 2010
    • Grant Likely's avatar
      of: Fix missing include · 50ef5284
      Grant Likely authored
      
      Fix a build failure on ARM
      
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      50ef5284
    • Grant Likely's avatar
      of/device: populate platform_device (of_device) resource table on allocation · ac80a51e
      Grant Likely authored
      
      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: default avatarGrant 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
    • Grant Likely's avatar
      of: Merge of_device_alloc() and of_device_make_bus_id() · 94c09319
      Grant Likely authored
      
      This patch merges the common routines of_device_alloc() and
      of_device_make_bus_id() from powerpc and microblaze.
      
      Signed-off-by: default avatarGrant 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
    • Grant Likely's avatar
      of/device: Merge of_platform_bus_probe() · 5fd200f3
      Grant Likely authored
      
      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: default avatarGrant 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
  13. May 22, 2010
  14. Oct 30, 2009
  15. May 14, 2008
  16. Feb 06, 2008
  17. Oct 18, 2007
  18. Jul 20, 2007
Loading