mmc: enable MMC/SD/SDIO device to suspend/resume asynchronously
authorFu, Zhonghui <zhonghui.fu@linux.intel.com>
Fri, 4 Dec 2015 13:05:56 +0000 (21:05 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:16 +0000 (11:32 +0100)
commitec076cd226c3d93565ede082a240e23b5090e36c
tree026021002f507e52d19245d7a53c59fcdf75e800
parent5c671c410c8704800f4f1673b6f572137e7e6ddd
mmc: enable MMC/SD/SDIO device to suspend/resume asynchronously

Now, PM core supports asynchronous suspend/resume mode for devices
during system suspend/resume, and the power state transition of one
device may be completed in separate kernel thread. PM core ensures
all power state transition dependency between devices. This patch
enables MMC/SD/SDIO card and SDIO function devices to suspend/resume
asynchronously. This will take advantage of multicore and improve
system suspend/resume speed. After applying this patch and enabling
all SDIO function's child devices to suspend/resume asynchronously
on ASUS T100TA, the system suspend-to-idle time is reduced from
1645ms to 1108ms, and the system resume time is reduced from 940ms
to 918ms.

Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/bus.c
drivers/mmc/core/sdio_bus.c