tighten transport failure semantics

This commit is contained in:
Jay
2026-08-17 17:33:44 -04:00
parent 3c95f3d7be
commit 73e5680fc3
11 changed files with 144 additions and 29 deletions
+3
View File
@@ -26,6 +26,9 @@ static trikke_transport_status_t usb_begin_packet(
return TRIKKE_TRANSPORT_PENDING;
}
if (written == 0) {
// Arguments and lifecycle were validated above, and this backend is the
// driver's sole owner. Under that invariant, zero means the all-or-none
// ring submission timed out without accepting this frame.
return TRIKKE_TRANSPORT_RETRY;
}
return TRIKKE_TRANSPORT_FATAL;