This patch set combines a few of code improvements for SDHCI clock handling. Besides small fixes, most value comes from simplifying the code, so it's easier to understand. Michał Mirosław (7): mmc: sdhci: fix base clock usage in preset value mmc: sdhci: fix programmable clock config from 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 clock frequency calculation mmc: sdhci: squash v2/v3+ clock calculation differences mmc: sdhci: respect non-zero div quirk in programmable clock mode drivers/mmc/host/sdhci-of-arasan.c | 7 +- drivers/mmc/host/sdhci.c | 126 +++++++++++++---------------- drivers/mmc/host/sdhci.h | 4 +- 3 files changed, 64 insertions(+), 73 deletions(-) -- 2.20.1