mmc: msm_sdcc: Add debugfs attribute for updating idle timeout
Recommended runtime PM idle timout should be 5sec. But to address any
PM related issues, add a debugfs entry to set this timeout less than
5sec.
Once debugfs is mounted, it will be available under path:
/sys/kernel/debug/msm_sdcc/mmc%/idle_tout
CRs-Fixed: 391067
Change-Id: I1f1c9e8cbb371cc975e71cf66fcbee43142b3bc7
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
diff --git a/drivers/mmc/host/msm_sdcc.h b/drivers/mmc/host/msm_sdcc.h
index 5779491..37b9423 100644
--- a/drivers/mmc/host/msm_sdcc.h
+++ b/drivers/mmc/host/msm_sdcc.h
@@ -414,7 +414,7 @@
bool sdio_wakeupirq_disabled;
struct mutex clk_mutex;
bool pending_resume;
- unsigned int idle_tout_ms; /* Timeout in msecs */
+ unsigned int idle_tout; /* Timeout in msecs */
bool pending_dpsm_reset;
struct msmsdcc_msm_bus_vote msm_bus_vote;
struct device_attribute max_bus_bw;
@@ -422,6 +422,8 @@
struct device_attribute idle_timeout;
struct device_attribute auto_cmd19_attr;
struct device_attribute auto_cmd21_attr;
+ struct dentry *debugfs_host_dir;
+ struct dentry *debugfs_idle_tout;
};
#define MSMSDCC_VERSION_STEP_MASK 0x0000FFFF