From patchwork Mon Apr 6 14:35:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benedikt Grassl X-Patchwork-Id: 237264 List-Id: U-Boot discussion From: Benedikt.Grassl at rohde-schwarz.com (Benedikt Grassl) Date: Mon, 6 Apr 2020 16:35:08 +0200 Subject: [PATCH] mmc: zynq: parse dt when probing Message-ID: <20200406143508.17554-1-Benedikt.Grassl@rohde-schwarz.com> Currently, the entry "bus-width = <8>" in the ZynqMP's sdhci nodes is not evaluated. This results in the bus width staying at its default value (4 bit in HS200 mode). Fix this by parsing the device tree while probing. Signed-off-by: Benedikt Grassl Reviewed-by: Jaehoon Chung --- drivers/mmc/zynq_sdhci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index da3ff53da1..f076f5f73d 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -251,6 +251,11 @@ static int arasan_sdhci_probe(struct udevice *dev) CONFIG_ZYNQ_SDHCI_MIN_FREQ); if (ret) return ret; + + ret = mmc_of_parse(dev, &plat->cfg); + if (ret) + return ret; + upriv->mmc = host->mmc; return sdhci_probe(dev);