1. 08 1月, 2009 38 次提交
  2. 07 1月, 2009 2 次提交
    • R
      PCI: Rework default handling of suspend and resume · 355a72d7
      Rafael J. Wysocki 提交于
      Rework the handling of suspend and resume of PCI devices which have
      no drivers or the drivers of which do not provide any suspend-resume
      callbacks in such a way that their standard PCI configuration
      registers will be saved and restored with interrupts disabled.  This
      should prevent such devices, including PCI bridges, from being
      resumed too late to be able to function correctly during the resume
      of the other PCI devices that may depend on them.
      
      Also, to remove one possible source of future confusion, drop the
      default handling of suspend and resume for PCI devices with drivers
      providing the 'pm' object introduced by the new suspend-resume
      framework (there are no such PCI drivers at the moment).
      
      This patch addresses the regression from 2.6.26 tracked as
      http://bugzilla.kernel.org/show_bug.cgi?id=12121 .
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      355a72d7
    • R
      PM: Simplify the new suspend/hibernation framework for devices · adf09493
      Rafael J. Wysocki 提交于
      PM: Simplify the new suspend/hibernation framework for devices
      
      Following the discussion at the Kernel Summit, simplify the new
      device PM framework by merging 'struct pm_ops' and
      'struct pm_ext_ops' and removing pointers to 'struct pm_ext_ops'
      from 'struct platform_driver' and 'struct pci_driver'.
      
      After this change, the suspend/hibernation callbacks will only
      reside in 'struct device_driver' as well as at the bus type/
      device class/device type level.  Accordingly, PCI and platform
      device drivers are now expected to put their suspend/hibernation
      callbacks into the 'struct device_driver' embedded in
      'struct pci_driver' or 'struct platform_driver', respectively.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      adf09493