diff options
author | Vishwanath BS <[email protected]> | 2010-09-30 14:14:22 +0200 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2010-09-30 14:14:22 +0200 |
commit | 753419f59e10d7181e43f0b9cc5beff43ef3f7a4 (patch) | |
tree | 1655f7b2fe6bd02b21674859b32b32571eb2e42b | |
parent | 59bfee6e0682635c269fb271422e2595fa441c21 (diff) |
i2c: Fix for suspend/resume issue
In current i2c core driver, call to pm_runtime_set_active from
i2c_device_pm_resume will unconditionally enable i2c module and
increment child count of the parent. Because of this, in CPU Idle
path, i2c does not idle, preventing Core to enter retention. Also i2c
module will not be suspended upon system suspend as
pm_runtime_set_suspended is not called from i2c_device_pm_suspend.
This issue is fixed by removing pm_runtime_set_active call from resume
path which is not necessary.
This fix has been tested on OMAP4430.
Signed-off-by: Partha Basak <[email protected]>
Signed-off-by: Vishwanath BS <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: Ben Dooks <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
-rw-r--r-- | drivers/i2c/i2c-core.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 6649176de940..13927d54cb4e 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -216,12 +216,6 @@ static int i2c_device_pm_resume(struct device *dev) else ret = i2c_legacy_resume(dev); - if (!ret) { - pm_runtime_disable(dev); - pm_runtime_set_active(dev); - pm_runtime_enable(dev); - } - return ret; } |