]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: mv_sdhci: parse device-tree entry
authorBaruch Siach <baruch@tkos.co.il>
Tue, 2 Feb 2021 06:43:04 +0000 (08:43 +0200)
committerStefan Roese <sr@denx.de>
Mon, 8 Feb 2021 07:53:14 +0000 (08:53 +0100)
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 <thorsten_spille@netcor.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
drivers/mmc/mv_sdhci.c

index 556dd380466b4dedffd731973e384aca814a13fd..4dc4a0d2be53eaf973d4eda08bfb20272139758d 100644 (file)
@@ -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;