summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch')
-rw-r--r--recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch b/recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch
new file mode 100644
index 0000000..0d3caa4
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-rt-3.14.28/0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch
@@ -0,0 +1,36 @@
1From 77903c01d8c6c5d2544085ba074aceadc1191d21 Mon Sep 17 00:00:00 2001
2From: Ulf Hansson <ulf.hansson@linaro.org>
3Date: Thu, 11 Dec 2014 15:12:25 +0100
4Subject: [PATCH 2/2] mmc: sdhci-esdhc-imx: Fixup runtime PM conditions during
5 ->probe()
6
7By configure runtime PM prior we enable the use of it, we close the gap
8for strange and unhandled conditions. Moreover it makes us rely on the
9driver core, after finalized ->probe(), to request an inactive device
10to become runtime PM idle/suspended, which earlier potentially could
11happen already at pm_runtime_set_autosuspend_delay().
12
13Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
14---
15 drivers/mmc/host/sdhci-esdhc-imx.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
19index 043866c..10ef824 100644
20--- a/drivers/mmc/host/sdhci-esdhc-imx.c
21+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
22@@ -1080,10 +1080,10 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
23 goto disable_clk;
24
25 pm_runtime_set_active(&pdev->dev);
26- pm_runtime_enable(&pdev->dev);
27 pm_runtime_set_autosuspend_delay(&pdev->dev, 50);
28 pm_runtime_use_autosuspend(&pdev->dev);
29 pm_suspend_ignore_children(&pdev->dev, 1);
30+ pm_runtime_enable(&pdev->dev);
31
32 return 0;
33
34--
351.9.3
36