[PATCH 06/10] i2c: designware-platdrv: Update runtime PM last busy mark in ->probe()
Ulf Hansson
ulf.hansson at linaro.org
Tue Jun 14 08:07:24 PDT 2016
To avoid the device to be immediately runtime suspended when ->probe()
returns, update the last busy mark to use the delay from autosuspend.
Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
---
drivers/i2c/busses/i2c-designware-platdrv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 4083376..106856f 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -253,6 +253,7 @@ static int dw_i2c_plat_probe(struct platform_device *pdev)
if (dev->pm_runtime_disabled)
pm_runtime_put_noidle(&pdev->dev);
}
+ pm_runtime_mark_last_busy(&pdev->dev);
pm_runtime_put(&pdev->dev);
return r;
--
1.9.1
More information about the linux-arm-kernel
mailing list