[RAMEN9610-19678][COMMON] mmc: dw_mmc: Add ignore runtime PM notify.
authorJaeHun Jung <jh0801.jung@samsung.com>
Tue, 25 Jun 2019 02:20:42 +0000 (11:20 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Mon, 9 Sep 2019 11:11:48 +0000 (20:11 +0900)
MMC does not use runtime PM.
So, Driver don't need register notifier for runtime PM.

Change-Id: I16cd8ded2c21fb00507f77edb3456e826f1d8802
Signed-off-by: JaeHun Jung <jh0801.jung@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
drivers/mmc/host/dw_mmc.c

index 54f3892cddedbf08cfe8470a4ed65192bb15771a..eb4e86020da924d8e2182ad59d57e9b25856eadd 100644 (file)
@@ -3358,8 +3358,10 @@ static int dw_mci_init_slot_caps(struct dw_mci_slot *slot)
        if (host->pdata->caps)
                mmc->caps |= host->pdata->caps;
 
-       if (host->pdata->pm_caps)
+       if (host->pdata->pm_caps) {
                mmc->pm_caps |= host->pdata->pm_caps;
+               host->slot->mmc->pm_flags |= mmc->pm_caps;
+       }
 
        if (host->dev->of_node) {
                ctrl_id = of_alias_get_id(host->dev->of_node, "mshc");
@@ -4028,6 +4030,8 @@ static struct dw_mci_board *dw_mci_parse_dt(struct dw_mci *host)
 
        if (of_find_property(np, "pm-skip-mmc-resume-init", NULL))
                pdata->pm_caps |= MMC_PM_SKIP_MMC_RESUME_INIT;
+       if (of_find_property(np, "pm-ignore-notify", NULL))
+               pdata->pm_caps |= MMC_PM_IGNORE_PM_NOTIFY;
        if (of_find_property(np, "card-detect-invert-gpio", NULL))
                pdata->caps2 |= MMC_CAP2_CD_ACTIVE_HIGH;
        if (of_find_property(np, "card-detect-gpio", NULL))