From: Stefan Roese Date: Mon, 20 Mar 2017 16:00:32 +0000 (+0100) Subject: mmc: xenon_sdhci: Add missing host->max_clk to Xenon SDHCI driver X-Git-Tag: v2017.05-rc1~5^2~74 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a92652346b0a06566c2ed00107fae24efc386ba;p=u-boot mmc: xenon_sdhci: Add missing host->max_clk to Xenon SDHCI driver The Xenon SDHCI driver just missed the integration of this patch: git ID 6d0e34bf mmc: sdhci: Distinguish between base clock and maximum peripheral frequency With this patch applied, the SDHCI subsystem complains now with this warning while probing: sdhci_setup_cfg: Hardware doesn't specify base clock frequency This patch fixes this issue, by providing the missing host->max_clk variable to the SDHCI subsystem. Signed-off-by: Stefan Roese Cc: Hu Ziji Cc: Victor Gu Cc: Konstantin Porotchkin Cc: Nadav Haklai Cc: Stefan Herbrechtsmeier Cc: Jaehoon Chung --- diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index f678110239..2a0d8b46c6 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -422,7 +422,8 @@ static int xenon_sdhci_probe(struct udevice *dev) host->ops = &xenon_sdhci_ops; - ret = sdhci_setup_cfg(&plat->cfg, host, XENON_MMC_MAX_CLK, 0); + host->max_clk = XENON_MMC_MAX_CLK; + ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0); if (ret) return ret;