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

2016-03-03 Thread Wolfram Sang
On Fri, Feb 26, 2016 at 01:35:39AM +0800, Liguo Zhang wrote: > Send the next transfer in the i2c irq handler, and only signal > complete() when the entire transaction has been completed. This describes what you do. But not why. Is this an improvment of throughput? Is there a downside of interrupt

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

2016-02-25 Thread Liguo Zhang
Send the next transfer in the i2c irq handler, and only signal complete() when the entire transaction has been completed. Signed-off-by: Liguo Zhang --- change in v2: Remove the unused variable left_num in mtk_i2c_transfer(). --- drivers/i2c/busses/i2c-mt65xx.c | 221 ++--