mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
mmc: mmci: Do pm_runtime_put() after the host has been added
Previously the pm_runtime_put() caused the device to be runtime PM suspended, but then immediately being resumed when we add the host. Prevent this unnecessary runtime PM suspend/resume cycle during ->probe() by moving the call to pm_runtime_put() after mmc_add_host(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
106276bbc9
commit
6f2d3c89db
@ -1739,10 +1739,10 @@ static int mmci_probe(struct amba_device *dev,
|
||||
|
||||
pm_runtime_set_autosuspend_delay(&dev->dev, 50);
|
||||
pm_runtime_use_autosuspend(&dev->dev);
|
||||
pm_runtime_put(&dev->dev);
|
||||
|
||||
mmc_add_host(mmc);
|
||||
|
||||
pm_runtime_put(&dev->dev);
|
||||
return 0;
|
||||
|
||||
clk_disable:
|
||||
|
Loading…
Reference in New Issue
Block a user