Re: [PATCH] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-21 Thread Jarkko Nikula
Hi On 10/20/20 11:33 AM, Michael Wu wrote: i2c_dw_read_clear_intrbits_slave() was called per each interrupt handle. It caused some interrupt bits which haven't been handled yet were cleared, the corresponding handlers would do nothing due to interrupt bits been discarded. For example, $ i2cset

[PATCH] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-20 Thread Michael Wu
i2c_dw_read_clear_intrbits_slave() was called per each interrupt handle. It caused some interrupt bits which haven't been handled yet were cleared, the corresponding handlers would do nothing due to interrupt bits been discarded. For example, $ i2cset -f -y 2 0x42 0x00 0x41; dmesg -c