From 24a0f8cfe5c85aef5a20baf34ee7b77004b07b04 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Tue, 2 Feb 2021 08:43:04 +0200 Subject: [PATCH] mmc: mv_sdhci: parse device-tree entry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Call mmc_of_parse() so that generic DT properties like 'non-removable' are taken into account. This fixes boot on Clearfog with eMMC on SOM that requires the non-removable property. Reported-by: Thorsten Spille Signed-off-by: Baruch Siach Reviewed-by: Jaehoon Chung Reviewed-by: Marek Behún --- drivers/mmc/mv_sdhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index 556dd38046..4dc4a0d2be 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -118,6 +118,10 @@ static int mv_sdhci_probe(struct udevice *dev) host->mmc->dev = dev; host->mmc->priv = host; + ret = mmc_of_parse(dev, &plat->cfg); + if (ret) + return ret; + ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0); if (ret) return ret; -- 2.39.5