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
MFC after: 4 days

Details

Provenance
avgAuthored on Dec 19 2021, 9:26 AM
Parents
rG9a8cf950b259: carp: fix send error demotion recovery
Branches
Unknown
Tags
Unknown