Skip to content
Commit 213bad47 authored by Can Guo's avatar Can Guo
Browse files

Revert "mmc: enable MMC/SD/SDIO device to suspend/resume asynchronously"



Commit ec076cd2 ("mmc: enable MMC/SD/SDIO device to
suspend/resume asynchronously") enables async suspend of
mmc card device. Kernel shall bring mmc card device into
suspend asynchronously from mmc host and sdhci msm host.
During system suspend, kernel power management framework
makes sure a parent device wait for its direct children
devices, which in the device power management (dpm) list
and have async suspend enabled, to finish their suspending
before it starts suspending. In our case, ideally, sdhci
msm host waits for mmc host, while mmc host waits for mmc
card. However, mmc host is not added into the dpm list
since it does not have pm functions implemented. Then the
dependency is broken as sdhci msm host does not wait for
mmc card. Sdhci msm host may start to suspend and disable
IRQ before mmc card finishes suspending, which causes
command interrupt timeout during system suspend. This
change reverts it.

Change-Id: I779afcc3f9d06b541e5f3314edf746f73a2cb7dd
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 11f73a0c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment