Skip to content

Commit

Permalink
UPSTREAM: mmc: core: enable mmc host device to suspend/resume asynchr…
Browse files Browse the repository at this point in the history
…onously

This patch enables mmc hosts to suspend/resume asynchronously.
This will improve system suspend/resume speed. After applying
this patch and enabling all mmc hosts' child devices to
suspend/resume asynchronously on ASUS T100TA, the system
suspend-to-idle time is reduced from 1645ms to 1107ms, and the
system resume time is reduced from 940ms to 914ms.

Signed-off-by: Zhonghui Fu <[email protected]>
Acked-by: Venu Byravarasu <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
(cherry picked from commit ccf7bfd)
Signed-off-by: Ziyuan Xu <[email protected]>
Change-Id: Ida5fbca5482da0462d7cb2dca9d8fe9f23d03573
  • Loading branch information
Fu, Zhonghui authored and rkhuangtao committed Mar 9, 2020
1 parent 7459187 commit 155a903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/core/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev)
host->class_dev.parent = dev;
host->class_dev.class = &mmc_host_class;
device_initialize(&host->class_dev);
device_enable_async_suspend(&host->class_dev);

if (mmc_gpio_alloc(host)) {
put_device(&host->class_dev);
Expand Down

0 comments on commit 155a903

Please sign in to comment.