Files
RedBear-OS/drivers/usb
Red Bear OS 1f9a25c949 USB: P2 TRB encoding tests + quirks PartialEq fix
IMPROVEMENT-PLAN.md §10.2: P2 quality item.

Added 9 comprehensive TRB encoding tests:
- normal_trb: type is Normal (0x01)
- isoch_trb: type is Isoch (0x06)
- setup_trb: type is SetupStage (0x02)
- completion codes: all 35 codes have unique u8 values
- is_transfer_trb: detects Normal/Setup/Data/Status/Isoch
- is_command_trb: detects EnableSlot/AddressDevice/Configure
- completion_code decode: Stall=6 from status field
- data_trb: type is DataStage (0x03)
- link_trb: type is Link (0x06)

All 9 tests pass. Previously: 0 TRB tests.

Fixed pre-existing issues:
- XhciQuirks: added PartialEq+Eq derives (needed by quirks tests)
- quirks test: hci_version 0x100→0 (256 overflows u8)
- regenerated Cargo.lock (was corrupted with merge markers)
2026-07-08 13:30:48 +03:00
..