Skip to content

Commit

Permalink
mmc: sdhci-acpi: enable sdhci-acpi device to suspend/resume asynchron…
Browse files Browse the repository at this point in the history
…ously

This patch enables sdhci-acpi devices to suspend/resume asynchronously.
This will improve system suspend/resume speed. After enabling the
sdhci-acpi devices and all their child devices to suspend/resume
asynchronously on ASUS T100TA, the system suspend-to-idle time is
reduced from 1645ms to 1089ms, and the system resume time is reduced
from 940ms to 908ms.

Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Fu, Zhonghui authored and Ulf Hansson committed Feb 29, 2016
1 parent ccf7bfd commit 4e6a2ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/host/sdhci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
pm_runtime_enable(dev);
}

device_enable_async_suspend(dev);

return 0;

err_free:
Expand Down

0 comments on commit 4e6a2ef

Please sign in to comment.