Re: [PATCH v2 1/2] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-22 Thread Wolfram Sang
On Wed, Oct 21, 2015 at 03:44:03PM +0200, Ludovic Desroches wrote: > From: Cyrille Pitchen > > In some cases a NACK interrupt may be pending in the Status Register (SR) > as a result of a previous transfer. However at91_do_twi_transfer() did not > read the SR to clear

[PATCH v2 1/2] i2c: at91: fix write transfers by clearing pending interrupt first

2015-10-21 Thread Ludovic Desroches
From: Cyrille Pitchen In some cases a NACK interrupt may be pending in the Status Register (SR) as a result of a previous transfer. However at91_do_twi_transfer() did not read the SR to clear pending interruptions before starting a new transfer. Hence a NACK interrupt