Files
Tom HarknessandClaude Sonnet 5 2e2720a1da PM5: bound usb_write()'s tx-complete wait
The two g_tx_completed spin loops in usb_write() had no timeout at all -
if the host ever stopped pulling an IN packet while the device still read
as enumerated, PM5 would spin forever with no recovery path. Add a
spin-iteration bound (not tick-based: g_tx_completed is set from the USB
core's own ISR, and the shared ticks timer is routinely stopped by LF/HF
code at arbitrary points), matching the existing bounded-wait pattern
used elsewhere in this codebase.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-10-04 14:24:10 +02:00
..
2026-08-29 17:42:29 +02:00
2026-09-16 19:00:50 +02:00
2026-09-12 10:35:40 +02:00
2026-08-29 17:42:29 +02:00
2026-08-29 17:42:29 +02:00
2026-09-04 15:34:30 +02:00
2026-08-29 17:42:29 +02:00
2026-09-26 12:23:47 -04:00