This was found by Anssi Hannula that the the timeout clock actually should be in KHz from the .get_timeout_clock callback. So patch 4 is a slighlt improvement based on Anssi's patch[1]. More investigation shows that sdhci-bcm-kona also did it in the wrong way. So I decide to invent a new helper function, sdhci_pltfm_clk_get_timeout_clock,to be better reused. Please review and comment. [1]: https://patchwork.kernel.org/patch/9569431/ Anssi Hannula (1): mmc: sdhci-of-arasan: fix incorrect timeout clock Shawn Lin (3): mmc: sdhci: add comment for get_timeout_clock callback mmc: sdhci: add new helper to get timeout clock mmc: sdhci-bcm-kona: reuse sdhci_pltfm_clk_get_timeout_clock drivers/mmc/host/sdhci-bcm-kona.c | 2 +- drivers/mmc/host/sdhci-of-arasan.c | 23 +---------------------- drivers/mmc/host/sdhci-pltfm.c | 14 ++++++++++++++ drivers/mmc/host/sdhci-pltfm.h | 1 + drivers/mmc/host/sdhci.h | 1 + 5 files changed, 18 insertions(+), 23 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html