1. 03 11月, 2014 1 次提交
    • A
      powerpc: Convert power off logic to pm_power_off · 9178ba29
      Alexander Graf 提交于
      The generic Linux framework to power off the machine is a function pointer
      called pm_power_off. The trick about this pointer is that device drivers can
      potentially implement it rather than board files.
      
      Today on powerpc we set pm_power_off to invoke our generic full machine power
      off logic which then calls ppc_md.power_off to invoke machine specific power
      off.
      
      However, when we want to add a power off GPIO via the "gpio-poweroff" driver,
      this card house falls apart. That driver only registers itself if pm_power_off
      is NULL to ensure it doesn't override board specific logic. However, since we
      always set pm_power_off to the generic power off logic (which will just not
      power off the machine if no ppc_md.power_off call is implemented), we can't
      implement power off via the generic GPIO power off driver.
      
      To fix this up, let's get rid of the ppc_md.power_off logic and just always use
      pm_power_off as was intended. Then individual drivers such as the GPIO power off
      driver can implement power off logic via that function pointer.
      
      With this patch set applied and a few patches on top of QEMU that implement a
      power off GPIO on the virt e500 machine, I can successfully turn off my virtual
      machine after halt.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      [mpe: Squash into one patch and update changelog based on cover letter]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      9178ba29
  2. 02 4月, 2012 1 次提交
    • U
      powerpc: Mark const init data with __initconst instead of __initdata · 059378e3
      Uwe Kleine-König 提交于
      As long as there is no other non-const variable marked __initdata in the
      same compilation unit it doesn't hurt. If there were one however
      compilation would fail with
      
      	error: $variablename causes a section type conflict
      
      because a section containing const variables is marked read only and so
      cannot contain non-const variables.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Josh Boyer <jwboyer@gmail.com>
      Cc: Matt Porter <mporter@kernel.crashing.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: cbe-oss-dev@lists.ozlabs.org
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      059378e3
  3. 01 11月, 2011 1 次提交
  4. 27 4月, 2011 1 次提交
  5. 21 1月, 2011 2 次提交
  6. 24 7月, 2010 1 次提交
    • J
      of: remove of_default_bus_ids · c0dd394c
      Jonas Bonn 提交于
      This list used was by only two platforms with all other platforms defining an
      own list of valid bus id's to pass to of_platform_bus_probe.  This patch:
      
      i)   copies the default list to the two platforms that depended on it (powerpc)
      ii)  remove the usage of of_default_bus_ids in of_platform_bus_probe
      iii) removes the definition of the list from all architectures that defined it
      
      Passing a NULL 'matches' parameter to of_platform_bus_probe is still valid; the
      function returns no error in that case as the NULL value is equivalent to an
      empty list.
      Signed-off-by: NJonas Bonn <jonas@southpole.se>
      [grant.likely@secretlab.ca: added __initdata annotations, warn on and return error on missing match table, and fix whitespace errors]
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      c0dd394c
  7. 24 3月, 2009 1 次提交
  8. 23 2月, 2009 1 次提交
  9. 23 12月, 2008 1 次提交
    • B
      powerpc/cell: add QPACE as a separate Cell platform · def434c2
      Benjamin Krill 提交于
      Since the QPACE (Chromodynamics Parallel Computing on the
      Cell Broadband Engine) platform doesn't use a iommu, doesn't
      have PCI devices and a MPIC much lesser setup and
      configurations are needed. So far all devices are detected
      as OF device. A notifier function is used to set the dma_ops
      for the of_platform bus. Further this patch splits the
      PPC_CELL_NATIVE into PPC_CELL_COMMON which are parts that are
      shared with the QPACE platform and the rest.
      Signed-off-by: NBenjamin Krill <ben@codiert.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      def434c2