Re: [PATCH v3 1/5] i2c:ocores: stop transfer on timeout

2019-02-08 Thread Andrew Lunn
On Fri, Feb 08, 2019 at 05:11:57PM +0100, Federico Vaga wrote: > Detecting a timeout is ok, but we also need to assert a STOP command on > the bus in order to prevent it from generating interrupts when there are > no on going transfers. > > Example: very long transmission. > > 1. ocores_xfer:

[PATCH v3 1/5] i2c:ocores: stop transfer on timeout

2019-02-08 Thread Federico Vaga
Detecting a timeout is ok, but we also need to assert a STOP command on the bus in order to prevent it from generating interrupts when there are no on going transfers. Example: very long transmission. 1. ocores_xfer: START a transfer 2. ocores_isr : handle byte by byte the transfer 3.