Skip to content

Commit

Permalink
mmc: mmci: De-assert reset on probe
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
linusw authored and storulf committed Aug 24, 2021
1 parent 29cef6d commit 575cf10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 575cf10

Please sign in to comment.