]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mmc: renesas_sdhi: Deassert the reset signal on probe
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Mon, 17 Nov 2025 10:12:40 +0000 (12:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 18 Nov 2025 15:28:54 +0000 (16:28 +0100)
Deassert the reset signal of the SDHI controller during probe to avoid
relying on the previous bootloaders. Without deasserting the reset signal,
the SDHI controller will not function.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c

index f56fa2cd208dd924f054b39daf6b29a7abc0bb9b..c4aaf534868c229fce3488696a9e088babbb1a53 100644 (file)
@@ -1103,7 +1103,7 @@ int renesas_sdhi_probe(struct platform_device *pdev,
        if (IS_ERR(priv->clk_cd))
                return dev_err_probe(&pdev->dev, PTR_ERR(priv->clk_cd), "cannot get cd clock");
 
-       priv->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL);
+       priv->rstc = devm_reset_control_get_optional_exclusive_deasserted(&pdev->dev, NULL);
        if (IS_ERR(priv->rstc))
                return PTR_ERR(priv->rstc);