Skip to content
Snippets Groups Projects
Commit 44945a77 authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: core: enable async suspend


Enables the asynchronous suspend of card and class device.
This would enable both these devices to suspend in separate
respective threads, thus allowing other devices to suspend
concurrently.

CRs-fixed: 634333
Change-Id: Ic73022ef777b4fae4b1065f92cfa19da51a99634
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent 4f7295be
Branches
Tags
No related merge requests found
......@@ -430,6 +430,7 @@ int mmc_add_card(struct mmc_card *card)
if (ret)
return ret;
device_enable_async_suspend(&card->dev);
if (mmc_use_core_runtime_pm(card->host) && !mmc_card_sdio(card)) {
card->rpm_attrib.show = show_rpm_delay;
card->rpm_attrib.store = store_rpm_delay;
......
......@@ -883,6 +883,7 @@ int mmc_add_host(struct mmc_host *host)
if (err)
return err;
device_enable_async_suspend(&host->class_dev);
led_trigger_register_simple(dev_name(&host->class_dev), &host->led);
#ifdef CONFIG_DEBUG_FS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment