]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: i2c-cdns: Start read transaction after write to transfer_size reg
authorSai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Tue, 1 Mar 2022 08:16:50 +0000 (09:16 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 9 Mar 2022 11:36:37 +0000 (12:36 +0100)
commit1bc2a79a4cde5f703b33342f2fcea8af208614ed
tree931db23f94d07d33bd204e677a436c2eeecad855
parentd926695cc5680edfff9cfef36a14933ee3585fbf
i2c: i2c-cdns: Start read transaction after write to transfer_size reg

Avoid a race condition where read transaction is started
keeping expected bytes as 0. Which sometimes would result in sending
STOP signal as no data is expected. Observed on QEMU platform.

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Reviewed-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/487c8026791bfd60719403a2df2c54bb0ae99232.1646122610.git.michal.simek@xilinx.com
drivers/i2c/i2c-cdns.c