mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
mmc: mmci: De-assert reset on probe
If we find a reset handle when probing the MMCI block, make sure the reset is de-asserted. It could happen that a hardware has reset asserted at boot. Cc: Russell King <linux@armlinux.org.uk> Cc: Yann Gautier <yann.gautier@foss.st.com> Cc: Ludovic Barre <ludovic.barre@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Tested-by: Yann Gautier <yann.gautier@foss.st.com> Link: https://lore.kernel.org/r/20210630102408.3543024-1-linus.walleij@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
29cef6d47b
commit
575cf10469
@ -2126,6 +2126,9 @@ static int mmci_probe(struct amba_device *dev,
|
||||
ret = PTR_ERR(host->rst);
|
||||
goto clk_disable;
|
||||
}
|
||||
ret = reset_control_deassert(host->rst);
|
||||
if (ret)
|
||||
dev_err(mmc_dev(mmc), "failed to de-assert reset\n");
|
||||
|
||||
/* Get regulators and the supported OCR mask */
|
||||
ret = mmc_regulator_get_supply(mmc);
|
||||
|
Loading…
Reference in New Issue
Block a user