[PATCHv3 7/8] i2c: omap: Restore i2c context always
shubhrajyoti at ti.com
Mon Nov 5 07:23:42 EST 2012
Currently the restore is done based on the flag
This helps the following
- The driver is always capable of restoring regardless
of the off mode support being there or not.
- While testing omap2430 it is found that in case of certain
error paths (timeout) a reset is done. However the restore
never happens as it is dependent on the POSTIDLE flag.
The other option would be to call a restore in the reset
case. As there are only a few registers to be restored
the penalty in the idle case should not be much.
Reviewed-by: Felipe Balbi <balbi at ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti at ti.com>
Todo: the flag could be deleted if the patch is accepted.
drivers/i2c/busses/i2c-omap.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 7393017..25f1564 100644
@@ -1316,8 +1316,7 @@ static int omap_i2c_runtime_resume(struct device *dev)
- if (_dev->flags & OMAP_I2C_FLAG_RESET_REGS_POSTIDLE)
More information about the linux-arm-kernel