summaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc_imx.c
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2020-09-22 18:11:43 +0800
committerPeng Fan <peng.fan@nxp.com>2020-10-12 15:48:13 +0800
commit9098682200e6cca4b776638a51200dafa16f50fb (patch)
tree5f33047cedc3da21ec74d0a78cbfbbdb770e066a /drivers/mmc/fsl_esdhc_imx.c
parentef5ab0d13a7a44469f6c765c8acc8d54c23213de (diff)
downloadu-boot-9098682200e6cca4b776638a51200dafa16f50fb.tar.gz
u-boot-9098682200e6cca4b776638a51200dafa16f50fb.tar.bz2
u-boot-9098682200e6cca4b776638a51200dafa16f50fb.zip
mmc: fsl_esdhc_imx: remove the 1ms delay before sending command
This 1ms delay before sending command already exist from the beginning of the fsl_esdhc driver added in year 2008. Now this driver has been split for two files: fsl_esdhc.c and fsl_esdhc_imx.c. fsl_esdhc_imx.c only for i.MX series. i.MX series esdhc/usdhc do not need this 1ms delay before sending any command. So remove this 1ms, this will save a lot time if handling a large mmc data. Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Diffstat (limited to 'drivers/mmc/fsl_esdhc_imx.c')
-rw-r--r--drivers/mmc/fsl_esdhc_imx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index 0c866b168f..caaef0b7da 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -462,13 +462,6 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
while (esdhc_read32(&regs->prsstat) & PRSSTAT_DLA)
;
- /* Wait at least 8 SD clock cycles before the next command */
- /*
- * Note: This is way more than 8 cycles, but 1ms seems to
- * resolve timing issues with some cards
- */
- udelay(1000);
-
/* Set up for a data transfer if we have one */
if (data) {
err = esdhc_setup_data(priv, mmc, data);