diff options
author | Linus Walleij <[email protected]> | 2021-06-30 12:24:08 +0200 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2021-08-24 10:15:30 +0200 |
commit | 575cf1046923690c1821cd33c55dc641937404cf (patch) | |
tree | 6b19b9583b84e772e5a602fd45abe58050951ddb | |
parent | 29cef6d47b67c5408d816a6268763bf4dafcac4e (diff) |
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 <[email protected]>
Cc: Yann Gautier <[email protected]>
Cc: Ludovic Barre <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Tested-by: Yann Gautier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
-rw-r--r-- | drivers/mmc/host/mmci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 984d35055156..3765e2f4ad98 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -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); |