1. 26 6月, 2011 1 次提交
    • O
      mmc: sdio: fix runtime PM path during driver removal · 297c7f2f
      Ohad Ben-Cohen 提交于
      After commit e1866b33 "PM / Runtime: Rework runtime PM handling
      during driver removal" was introduced, the driver core stopped
      incrementing the runtime PM usage counter of the device during
      the invocation of the ->remove() callback.
      
      This indirectly broke SDIO's runtime PM path during driver removal,
      because no one calls _put_sync() anymore after ->remove() completes.
      
      This means that the power of runtime-PM-managed SDIO cards is kept
      high after their driver is removed (even if it was powered down
      beforehand).
      
      Fix that by directly calling _put_sync() when the last usage
      counter is downref'ed by the SDIO bus.
      Reported-and-tested-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
      Signed-off-by: NChris Ball <cjb@laptop.org>
      297c7f2f
  2. 19 6月, 2011 4 次提交
  3. 18 6月, 2011 14 次提交
  4. 17 6月, 2011 21 次提交