| From 8ac35c08e71ead0d78a77f77c2fbe5292081cd41 Mon Sep 17 00:00:00 2001 |
| From: Wolfram Sang <wsa+renesas@sang-engineering.com> |
| Date: Tue, 14 Nov 2017 23:51:04 +0100 |
| Subject: [PATCH 0449/1795] 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> |
| (cherry picked from commit 754febcc6b749bb05ebb06b0b9cfdda6157e8cfd) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/mmc/host/tmio_mmc_core.c | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c |
| index 62217afb51d6..36301e385006 100644 |
| --- a/drivers/mmc/host/tmio_mmc_core.c |
| +++ b/drivers/mmc/host/tmio_mmc_core.c |
| @@ -806,7 +806,7 @@ static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode) |
| if (ret == 0) |
| set_bit(i, host->taps); |
| |
| - mdelay(1); |
| + usleep_range(1000, 1200); |
| } |
| |
| ret = host->select_tuning(host); |
| @@ -958,7 +958,7 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd) |
| * 100us were not enough. Is this the same 140us delay, as in |
| * tmio_mmc_set_ios()? |
| */ |
| - udelay(200); |
| + usleep_range(200, 300); |
| } |
| /* |
| * It seems, VccQ should be switched on after Vcc, this is also what the |
| @@ -966,7 +966,7 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd) |
| */ |
| if (!IS_ERR(mmc->supply.vqmmc) && !ret) { |
| ret = regulator_enable(mmc->supply.vqmmc); |
| - udelay(200); |
| + usleep_range(200, 300); |
| } |
| |
| if (ret < 0) |
| @@ -1059,7 +1059,7 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) |
| } |
| |
| /* Let things settle. delay taken from winCE driver */ |
| - udelay(140); |
| + usleep_range(140, 200); |
| if (PTR_ERR(host->mrq) == -EINTR) |
| dev_dbg(&host->pdev->dev, |
| "%s.%d: IOS interrupted: clk %u, mode %u", |
| -- |
| 2.19.0 |
| |