[PATCH] mmc: mv_sdhci: parse device-tree entry
Jaehoon Chung
jh80.chung at samsung.com
Tue Feb 2 10:01:25 CET 2021
On 2/2/21 3:43 PM, Baruch Siach wrote:
> 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 at netcor.de>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>
Best Regards,
Jaehoon Chung
> ---
> 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 9b3dfa13e619..0a8987c1b5da 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;
>
More information about the U-Boot
mailing list