HomeFreeBSD

twsi: fix handling of consecuitve write messages in transaction

Description

twsi: fix handling of consecuitve write messages in transaction

Make sure to reset 'message_done' flag when jumping from a message to the
next one within the same interrupt handler call. This happens only when
a write with no-stop flag message is followed by a write with no-start
flag message.
Without this fix the second message would be prematurely "completed"
without waiting for an ACK (or NACK) for its first byte and without
sending subsequent bytes (if any).

Fixes: ff1e8581 twsi: support more message combinations in transfers

(cherry picked from commit e5268c3d435e0a0f0fef64e6213504dd189272f6)

Details

Provenance
avgAuthored on Dec 19 2021, 9:26 AM
Parents
rG524020aa3701: ds3231: allow configuration via hints on FDT systems
Branches
Unknown
Tags
Unknown