diff mbox series

[v2,6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT properties

Message ID 20200827092557.269129-3-eugen.hristev@microchip.com
State Accepted
Commit 3710b464e43abe27ed9ab40c39f98a309a7db055
Delegated to: Eugen Hristev
Headers show
Series None | expand

Commit Message

Eugen Hristev Aug. 27, 2020, 9:25 a.m. UTC
Call mmc_of_parse at probe time to fetch all the host properties
from the DT.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 drivers/mmc/atmel_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Peng Fan Aug. 27, 2020, 9:32 a.m. UTC | #1
> Subject: [PATCH v2 6/6] mmc: atmel-sdhci: use mmc_of_parse to get the DT
> properties
> 
> Call mmc_of_parse at probe time to fetch all the host properties from the DT.
> 
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---

Please add a changelog for future new version patches.

>  drivers/mmc/atmel_sdhci.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index
> c67b065061..f56ae63bc2 100644
> --- a/drivers/mmc/atmel_sdhci.c
> +++ b/drivers/mmc/atmel_sdhci.c
> @@ -89,6 +89,10 @@ static int atmel_sdhci_probe(struct udevice *dev)
>  	if (ret)
>  		return ret;
> 
> +	ret = mmc_of_parse(dev, &plat->cfg);
> +	if (ret)
> +		return ret;
> +
>  	host->max_clk = max_clk;
>  	host->mmc = &plat->mmc;
>  	host->mmc->dev = dev;

Reviewed-by: Peng Fan <peng.fan@nxp.com>

Thanks,
Peng.

> --
> 2.25.1
diff mbox series

Patch

diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index c67b065061..f56ae63bc2 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -89,6 +89,10 @@  static int atmel_sdhci_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	host->max_clk = max_clk;
 	host->mmc = &plat->mmc;
 	host->mmc->dev = dev;