Message ID | 20120913053325.GC6504@arwen.pp.htv.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Felipe Balbi <balbi@ti.com> writes: [...] > I just ran same tests on pandaboard and i2c is suspended actually, > though no power domain transitions to RET. Do we not have retention > while idle on pandaboard ? Not for CORE. Only CPUx and MPU domains will be transitioning on OMAP4, and then, only with CPUidle enabled. Until we have CORE retention support in mainline (we're almost there) OMAP4 is not a useful test platform for device PM. Kevin
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index c78431a..ac61664 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1238,6 +1238,8 @@ static int omap_i2c_runtime_suspend(struct device *dev) struct omap_i2c_dev *_dev = platform_get_drvdata(pdev); u16 iv; + dev_info(dev, "%s\n", __func__); + _dev->iestate = omap_i2c_read_reg(_dev, OMAP_I2C_IE_REG); omap_i2c_write_reg(_dev, OMAP_I2C_IE_REG, 0); @@ -1277,6 +1279,8 @@ static int omap_i2c_runtime_resume(struct device *dev) if (_dev->iestate) omap_i2c_write_reg(_dev, OMAP_I2C_IE_REG, _dev->iestate); + dev_info(dev, "%s\n", __func__); + return 0; } #endif /* CONFIG_PM_RUNTIME */