diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-18 17:12:47 +0200 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2016-05-18 10:07:36 -0700 |
commit | 10a55ee2f8dd4945f495b68b449ed36e9d0751de (patch) | |
tree | 43a5923344f7998b8a50fca7c7667fa99b8f626c | |
parent | c5914b8708660a6920788363bb6860c2e891d3a3 (diff) |
i2c: designware: Re-init the HW in system PM resumedev/i2c-fixes
In cases when the device specific flag "pm_runtime_disabled" is set, the
HW becomes disabled during system PM suspend.
To restore the HW into and operational state, let's re-initialize it at
system PM resume.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | drivers/i2c/busses/i2c-designware-platdrv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index 5e7e49711765..03543cf9358d 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c @@ -310,8 +310,7 @@ static int dw_i2c_plat_runtime_resume(struct device *dev) clk_prepare_enable(i_dev->clk); - if (!i_dev->pm_runtime_disabled) - i2c_dw_init(i_dev); + i2c_dw_init(i_dev); return 0; } |