diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2023-06-15 16:06:53 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2023-06-15 16:06:53 +0300 |
commit | ae6a2c44052fd59db7daf63eabed9e16be783cbc (patch) | |
tree | dfa1f69e2214aed9152bf163bc5585a3898e8b14 /drivers/mmc/host/mmci.c | |
parent | 16f2e6c01f1b1d641c92c0dcb469fe0f78b12878 (diff) | |
parent | 3c40eb8145325b0f5b93b8a169146078cb2c49d6 (diff) | |
download | linux-ae6a2c44052fd59db7daf63eabed9e16be783cbc.tar.xz |
mmc: Merge branch fixes into next
Merge the mmc fixes for v6.4-rc[n] into the next branch, to allow them to
get tested together with the new mmc changes that are targeted for v6.5.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r-- | drivers/mmc/host/mmci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 97a77eefb11a..f724bd0d2a61 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -1735,7 +1735,8 @@ static void mmci_set_max_busy_timeout(struct mmc_host *mmc) return; if (host->variant->busy_timeout && mmc->actual_clock) - max_busy_timeout = ~0UL / (mmc->actual_clock / MSEC_PER_SEC); + max_busy_timeout = U32_MAX / DIV_ROUND_UP(mmc->actual_clock, + MSEC_PER_SEC); mmc->max_busy_timeout = max_busy_timeout; } |