Skip to content

mmc: sdhci: try to avoid another division by zero

Andy Shevchenko linux-mmc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "mmc: sdhci: Fix SDHCI_QUIRK_TIMEOUT_USES_SDCLK"drivers/mmc/host/sdhci.c+3 -40 replies
2/4mmc: sdhci: check host->clock before use it as denominatordrivers/mmc/host/sdhci.c+5 -30 replies
3/4mmc: sdhci: move timeout_clk calculation a bit furtherdrivers/mmc/host/sdhci.c+19 -190 replies
4/4mmc: sdhci: use f_max instead of host->clock for timeoutsdrivers/mmc/host/sdhci.c+2 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mmc: sdhci: try to avoid another division by zero

The set of patches that applied for 3.0 exposes another "division by zero" error. This set tries to remake the "Fix SDHCI_QUIRK_TIMEOUT_USES_SDCLK" patch.

Comments are very welcome!

Of course, the set needs to be tested carefully.

Andy Shevchenko (4):
Revert "mmc: sdhci: Fix SDHCI_QUIRK_TIMEOUT_USES_SDCLK"
mmc: sdhci: check host->clock before use it as denominator
mmc: sdhci: move timeout_clk calculation a bit further
mmc: sdhci: use f_max instead of host->clock for timeouts

 drivers/mmc/host/sdhci.c |   50 ++++++++++++++++++++++-----------------------
 1 files changed, 24 insertions(+), 26 deletions(-)
Signature · 1 line
1.7.5.4