feat: wait up to 10s for a late MONTAUKROOT, retry USB enumeration after a port reset, recover halted EP0/bulk endpoints, MSC card reader settle
This commit is contained in:
1 parent
ffee9002a6
commit
93d8becce3
14 files changed
+340
-57
No files matched your search
@@ -335,6 +335,11 @@ namespace Drivers::USB::Hub {
|
||||
g_pending.store(true, std::memory_order_release);
|
||||
}
|
||||
|
||||
bool ResetChildPort(uint8_t hubSlot, uint8_t port, uint32_t& speed) {
|
||||
if (hubSlot == 0 || hubSlot > Xhci::MAX_SLOTS || !g_hubs[hubSlot].Active) return false;
|
||||
return ResetPort(hubSlot, port, g_hubs[hubSlot].Info.SuperSpeed, speed);
|
||||
}
|
||||
|
||||
bool HasPendingWork() {
|
||||
return g_pending.load(std::memory_order_acquire);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user