[PATCH v4 0/5] SDHCI clock handling fixes and cleanups

From: Michał Mirosław
Date: Sun Jul 25 2021 - 05:20:55 EST


This patch set combines a few of code improvements for SDHCI clock
handling. First three are small fixes to the code, next two make
the clock calculation code simpler.

Michał Mirosław (5):
mmc: sdhci: fix base clock usage in preset value
mmc: sdhci: always obey programmable clock config in preset value
mmc: sdhci: fix SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN
mmc: sdhci: move SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN frequency limit
mmc: sdhci: simplify v2/v3+ clock calculation

drivers/mmc/host/sdhci-of-arasan.c | 11 +--
drivers/mmc/host/sdhci-of-dwcmshc.c | 8 +-
drivers/mmc/host/sdhci.c | 123 +++++++++++++---------------
drivers/mmc/host/sdhci.h | 4 +-
4 files changed, 67 insertions(+), 79 deletions(-)

--
2.30.2