Skip to contentSkip to conversation

mmc: mv_sdhci: parse device-tree entry

PATCH New Baruch Siach 4 participants 4 messages Feb 2, 2021 – Feb 8, 2021 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: mv_sdhci: parse device-tree entry

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.

---
 drivers/mmc/mv_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
index 9b3dfa13e619..0a8987c1b5da 100644
@@ -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;
Signature · 1 line
2.30.0
#1 lore raw

PATCH 1/1 mmc: mv_sdhci: parse device-tree entry

Quoted 8 lines · Baruch Siach

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.

Best Regards,
Jaehoon Chung

Quoted 20 lines
---
 drivers/mmc/mv_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
index 9b3dfa13e619..0a8987c1b5da 100644
@@ -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;