Skip to content

Commit fc62113

Browse files
wangbaolin719storulf
authored andcommitted
mmc: host: sdhci-sprd: Fix the missing pm_runtime_put_noidle()
When the SD host controller tries to probe again due to the derferred probe mechanism, it will always keep the SD host device as runtime resume state due to missing the runtime put operation in error path last time. Thus add the pm_runtime_put_noidle() in error path to make the PM runtime counter balance, which can make the SD host device's PM runtime work well. Signed-off-by: Baolin Wang <[email protected]> Acked-by: Adrian Hunter <[email protected]> Fixes: fb8bd90 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller") Cc: [email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 5f9e832 commit fc62113

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mmc/host/sdhci-sprd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ static int sdhci_sprd_probe(struct platform_device *pdev)
624624
sdhci_cleanup_host(host);
625625

626626
pm_runtime_disable:
627+
pm_runtime_put_noidle(&pdev->dev);
627628
pm_runtime_disable(&pdev->dev);
628629
pm_runtime_set_suspended(&pdev->dev);
629630

0 commit comments

Comments
 (0)