Files
RedBear-OS/drivers/usb
Red Bear OS 171d8c5258 USB: eliminate all 6 panic!() sites in xhcid hot paths
irq_reactor.rs (4→0):
- EventTrbFuture::poll() on Finished: panic → log::error + Poll::Pending
- next_transfer_event_trb(): panic on invalid TRB type → log::error
- next_command_completion_event_trb(): panic → log::error
- next_misc_event_trb(): panic → log::error

ring.rs (1→0):
- trb_phys_ptr(): panic on out-of-bounds TRB → log::error + return 0

main.rs (1→0):
- feature_info Msi variant mismatch: panic → log::error + fallback to Polling

Rationale: A malformed hardware TRB or transient PCID state inconsistency
must not crash the IRQ reactor thread — these are the highest-risk
single-point failures in the USB hotplug path.  Now degrades gracefully
with error logging and safe fallbacks (zero physical address, Polling
interrupt method, Poll::Pending state).
2026-07-07 17:30:43 +03:00
..