Message ID | 1465916848-8207-8-git-send-email-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 106856f..95a9f4e 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -337,9 +337,7 @@ static int dw_i2c_plat_resume(struct device *dev) struct dw_i2c_dev *i_dev = platform_get_drvdata(pdev); i2c_dw_plat_prepare_clk(i_dev, true); - - if (!i_dev->pm_runtime_disabled) - i2c_dw_init(i_dev); + i2c_dw_init(i_dev); return 0; }
In cases when the designware specific flag "pm_runtime_disable" is set, the HW becomes disabled during system PM suspend. Let's make sure it becomes operational when resuming by re-initialize it again. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/i2c/busses/i2c-designware-platdrv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.9.1