Re: [PATCH v3] i2c: mediatek: i2c multi transfer optimization

2016-04-15 Thread liguo zhang
On Tue, 2016-04-12 at 23:13 +0200, Wolfram Sang wrote: > Hi, > > thanks for the submission! > > On Tue, Mar 08, 2016 at 02:23:51AM +0800, Liguo Zhang wrote: > > Signal complete() in the i2c irq handler after one transfer done, > > and then wait_for_completion_timeout() will return, this procedure

Re: [PATCH v3] i2c: mediatek: i2c multi transfer optimization

2016-04-12 Thread Wolfram Sang
Hi, thanks for the submission! On Tue, Mar 08, 2016 at 02:23:51AM +0800, Liguo Zhang wrote: > Signal complete() in the i2c irq handler after one transfer done, > and then wait_for_completion_timeout() will return, this procedure > may cost much time, so only signal complete() when the entire > tr

[PATCH v3] i2c: mediatek: i2c multi transfer optimization

2016-03-07 Thread Liguo Zhang
Signal complete() in the i2c irq handler after one transfer done, and then wait_for_completion_timeout() will return, this procedure may cost much time, so only signal complete() when the entire transaction has been completed, it will reduce the entire transaction time. Signed-off-by: Liguo Zhang