OSDN Git Service

mmc: sdhci: Add notify_load host->op
authorSahitya Tummala <stummala@codeaurora.org>
Thu, 6 Aug 2015 08:28:47 +0000 (13:58 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Tue, 31 May 2016 22:27:12 +0000 (15:27 -0700)
Add notify_load host->op to enable host controllers to
scale up/down necessary clocks based on the load.

Change-Id: I39d31d5343d8aa453f29294e340e52d94bfd0ade
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h

index 6b3c902..a156fe2 100644 (file)
@@ -1562,6 +1562,9 @@ static int sdhci_notify_load(struct mmc_host *mmc, enum mmc_load state)
                break;
        }
 
+       if (host->ops->notify_load)
+               err = host->ops->notify_load(host, state);
+
        return err;
 }
 
index 8ec61fb..2046f4a 100644 (file)
@@ -675,6 +675,7 @@ struct sdhci_ops {
                                         struct mmc_card *card,
                                         unsigned int max_dtr, int host_drv,
                                         int card_drv, int *drv_type);
+       int     (*notify_load)(struct sdhci_host *host, enum mmc_load state);
 };
 
 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS