fw-zephyr: Fix a bug in I2C driver where RX transfer can be started when bus is not idle

The driver might issue the RX transfer command before the RX bus can be idle.
This would cause the RX command to be "transferred" without returning an error, then the driver would wait indefinitely for a request that was never started.
Any RX transfer should check if the bus is idle first before issuing the RX transfer.

This issue was acknowledged by TI and should be fixed in their newer version of the I2C driver.

BUG=None
TEST=None

Change-Id: I0c2065df897f46d28a81828370097e8740bad08a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dolos/+/5602589
Tested-by: Udaya Kiran Ammu <udaykiran@google.com>
Reviewed-by: Udaya Kiran Ammu <udaykiran@google.com>
Reviewed-by: Samuel Jacob <samjaco@google.com>
Commit-Queue: Udaya Kiran Ammu <udaykiran@google.com>
1 file changed