An error occurred fetching the project authors.
  1. 20 Aug, 2003 1 commit
  2. 12 Aug, 2003 1 commit
    • Patrick Mochel's avatar
      [power] Add hooks for runtime device power control. · 86ccb795
      Patrick Mochel authored
      dpm_runtime_{suspend,resume} control the power state of a single device 
      while the system is running. 
      
      dpm_runtime_suspend() will save state of the device, then attempt to power
      it down. This happens with interrupts enabled, so if the device does not 
      support that, the device's state is restored, and we continue on our merry
      way.
      
      dpm_runtime_resume() powers the device back on, then restores state of the
      device.
      
      dpm_set_power_state() simply notifies the core of the power state the
      device is in. Drivers can use this, since they are the only ones that can
      really tell.
      86ccb795
  3. 08 Aug, 2003 1 commit
  4. 07 Aug, 2003 1 commit
    • Patrick Mochel's avatar
      [power] Improve device suspend/resume sequence. · 9c823fa4
      Patrick Mochel authored
      - Split calls into 
        - device_pm_suspend() [ Saving device state. ]
        - device_pm_power_down() [ Powering devices down. ]
        - device_pm_power_up() [ Powering devices up. ]
        - device_pm_resume() [ Restoring device state. ]
      
      - Walk local dpm_active list when suspending devices, and move devices to 
        dpm_suspended list when ->suspend() is called. 
      - Walk dpm_suspended list to power down devices (with interrrupts enabled.)
        - Try to power down devices with IRQs on. 
        - If they succeed, move them to dpm_off list.
        - If they return -EAGAIN, move them to dpm_off_irq list. 
      - Disable interrupts and suspend devices needed interrupts off. 
      
      - Do converse on resume 
        - power on devices that need interrupts off and move them to 
          dpm_suspended.
        - Enable interrupts.
        - Power on all other devices and move them to dpm_suspended.
        - Restore state of all devices and move them to dpm_active. 
      9c823fa4
  5. 06 Aug, 2003 1 commit