mmc: msm_sdcc: Add debugfs attribute to enforce PIO mode

When SDCC driver encounters errors during data transfers, we can
by-pass the DM to continue the transfer in PIO mode to isolate any
device specific issues. This patch adds a debugfs attribute to enable
or disable PIO mode.

Once debugfs is mounted, it will be available under path:
/sys/kernel/debug/msm_sdcc/mmc%/pio_mode

CRs-Fixed: 390553
Change-Id: Ib6d6c235e6b212e5791a3c4752b8adf2f3677252
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 37b9423..620750a 100644
--- a/drivers/mmc/host/msm_sdcc.h
+++ b/drivers/mmc/host/msm_sdcc.h
@@ -424,6 +424,8 @@
 	struct device_attribute auto_cmd21_attr;
 	struct dentry *debugfs_host_dir;
 	struct dentry *debugfs_idle_tout;
+	bool enforce_pio_mode;
+	struct dentry *debugfs_pio_mode;
 };
 
 #define MSMSDCC_VERSION_STEP_MASK	0x0000FFFF