summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorSujit Reddy Thumma <sthumma@codeaurora.org>2014-12-04 16:03:03 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:25:48 -0700
commit2023cd8d36564268d3859b64a61b94e9791b2d5f (patch)
treef682003df97bc1b885d480f1d0d234749c1aecf5 /include/linux/mmc
parentbca5c01383ae6bd9345a506a139d7fa8bd462b81 (diff)
mmc: core: Add support for notifying host driver while scaling clocks
Host drivers can participate in clock scaling by registering ->notify_load host operation, which allows host driver to carry out platform specific operations for further power savings or increasing throughput based on whether load is LOW or HIGH respectively. This can be applicable to non-ultra high speed cards as well so remove the check for ultra high speed cards to initialize clock scaling. Change-Id: Icaab9520135e384f5470db68b2f25c5cdce5663a Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org> [merez:codeaurora@org: fix conflicts due to removal of stop transmission] Signed-off-by: Maya Erez <merez@codeaurora.org> [subhashj@codeaurora.org: fixed trivial merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 246151e79477..959d52b324ec 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -443,6 +443,7 @@ struct mmc_host {
bool initialized;
bool in_progress;
struct delayed_work work;
+ enum mmc_load state;
} clk_scaling;
unsigned long private[0] ____cacheline_aligned;
};