Re: [PATCH] i2c: at91: ensure state is restored after suspending

2017-02-16 Thread Alexandre Belloni
On 06/02/2017 at 15:35:55 +0100, Ludovic Desroches wrote: > On Mon, Jan 30, 2017 at 06:25:33PM +0100, Alexandre Belloni wrote: > > When going to suspend, the I2C registers may be lost because the power to > > VDDcore is cut. Save them and restore them when resuming. > > > > Signed-off-by: Alexandr

Re: [PATCH] i2c: at91: ensure state is restored after suspending

2017-02-06 Thread Ludovic Desroches
Hi, I add Cyrille for FIFO part. On Mon, Jan 30, 2017 at 06:25:33PM +0100, Alexandre Belloni wrote: > When going to suspend, the I2C registers may be lost because the power to > VDDcore is cut. Save them and restore them when resuming. > > Signed-off-by: Alexandre Belloni > --- > drivers/i2c/b

Re: [PATCH] i2c: at91: ensure state is restored after suspending

2017-01-30 Thread Wolfram Sang
> + at91_init_twi_bus(twi_dev); Can't this function reinit the registers to the needed values? I am not convinced that a cache will always reflect the proper state after resume. signature.asc Description: PGP signature

[PATCH] i2c: at91: ensure state is restored after suspending

2017-01-30 Thread Alexandre Belloni
When going to suspend, the I2C registers may be lost because the power to VDDcore is cut. Save them and restore them when resuming. Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-at91.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/i2c/busses/