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: Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment