Skip to content

Commit ae6a2c4

Browse files
author
Ulf Hansson
committed
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>
2 parents 16f2e6c + 3c40eb8 commit ae6a2c4

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -991,11 +991,8 @@ static irqreturn_t meson_mmc_irq(int irq, void *dev_id)
991991

992992
if (data && !cmd->error)
993993
data->bytes_xfered = data->blksz * data->blocks;
994-
if (meson_mmc_bounce_buf_read(data) ||
995-
meson_mmc_get_next_command(cmd))
996-
ret = IRQ_WAKE_THREAD;
997-
else
998-
ret = IRQ_HANDLED;
994+
995+
return IRQ_WAKE_THREAD;
999996
}
1000997

1001998
out:
@@ -1007,9 +1004,6 @@ static irqreturn_t meson_mmc_irq(int irq, void *dev_id)
10071004
writel(start, host->regs + SD_EMMC_START);
10081005
}
10091006

1010-
if (ret == IRQ_HANDLED)
1011-
meson_mmc_request_done(host->mmc, cmd->mrq);
1012-
10131007
return ret;
10141008
}
10151009

drivers/mmc/host/mmci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,8 @@ static void mmci_set_max_busy_timeout(struct mmc_host *mmc)
17351735
return;
17361736

17371737
if (host->variant->busy_timeout && mmc->actual_clock)
1738-
max_busy_timeout = ~0UL / (mmc->actual_clock / MSEC_PER_SEC);
1738+
max_busy_timeout = U32_MAX / DIV_ROUND_UP(mmc->actual_clock,
1739+
MSEC_PER_SEC);
17391740

17401741
mmc->max_busy_timeout = max_busy_timeout;
17411742
}

0 commit comments

Comments
 (0)