Skip to content

Commit 754febc

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: tmio: use usleep_range consistently
There are a few udelay() left which are in a range that they should be usleep_range() these days. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 9645538 commit 754febc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mmc/host/tmio_mmc_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
806806
if (ret == 0)
807807
set_bit(i, host->taps);
808808

809-
mdelay(1);
809+
usleep_range(1000, 1200);
810810
}
811811

812812
ret = host->select_tuning(host);
@@ -958,15 +958,15 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd)
958958
* 100us were not enough. Is this the same 140us delay, as in
959959
* tmio_mmc_set_ios()?
960960
*/
961-
udelay(200);
961+
usleep_range(200, 300);
962962
}
963963
/*
964964
* It seems, VccQ should be switched on after Vcc, this is also what the
965965
* omap_hsmmc.c driver does.
966966
*/
967967
if (!IS_ERR(mmc->supply.vqmmc) && !ret) {
968968
ret = regulator_enable(mmc->supply.vqmmc);
969-
udelay(200);
969+
usleep_range(200, 300);
970970
}
971971

972972
if (ret < 0)
@@ -1059,7 +1059,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
10591059
}
10601060

10611061
/* Let things settle. delay taken from winCE driver */
1062-
udelay(140);
1062+
usleep_range(140, 200);
10631063
if (PTR_ERR(host->mrq) == -EINTR)
10641064
dev_dbg(&host->pdev->dev,
10651065
"%s.%d: IOS interrupted: clk %u, mode %u",

0 commit comments

Comments
 (0)