diff mbox series

[1/3] mmc: s5p_sdhci: Read generic MMC properties from DT

Message ID 20200116152535.2170-2-m.szyprowski@samsung.com
State Accepted
Commit e27108c433a249ba8ebc59f7a3113b9b666f5d67
Headers show
Series Fix Odroid U3/X2 SD-card boot | expand

Commit Message

Marek Szyprowski Jan. 16, 2020, 3:25 p.m. UTC
Read generic MMC properties from device-tree. This allows to specify for
example cd-inverted property and let MMC core to properly handle such
case.

Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
---
 drivers/mmc/s5p_sdhci.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Anand Moon Jan. 17, 2020, 4:55 a.m. UTC | #1
Hi Marek,

On Thu, 16 Jan 2020 at 20:56, Marek Szyprowski <m.szyprowski at samsung.com> wrote:
>
> Read generic MMC properties from device-tree. This allows to specify for
> example cd-inverted property and let MMC core to properly handle such
> case.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
> ---

Please add my
Reviewed-by: Anand Moon <linux.amoon at gmail.com>

-Anand
diff mbox series

Patch

diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 53efa968cf..b5fe828dd6 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -204,8 +204,13 @@  static int s5p_sdhci_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	host->mmc = &plat->mmc;
 	host->mmc->dev = dev;
+
 	ret = sdhci_setup_cfg(&plat->cfg, host, 0, 400000);
 	if (ret)
 		return ret;