Skip to content

Commit 295b593

Browse files
committed
sdhci: sdhci-of-at91: issue IP reset at probe
Issue IP reset at probe time. This will avoid clock glitches if input clocks are being requested again. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent af8a6ad commit 295b593

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-of-at91.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ static int sdhci_at91_probe(struct platform_device *pdev)
352352
priv = sdhci_pltfm_priv(pltfm_host);
353353
priv->soc_data = soc_data;
354354

355+
/* Perform a software reset before using the IP */
356+
sdhci_at91_reset(host, SDHCI_RESET_ALL);
357+
355358
priv->mainck = devm_clk_get(&pdev->dev, "baseclk");
356359
if (IS_ERR(priv->mainck)) {
357360
if (soc_data->baseclk_is_generated_internally) {

0 commit comments

Comments
 (0)