Kernel/USB: Handle NAK correctly in a transfer status bits

This commit is contained in:
Liav A 2023-05-05 09:03:38 +03:00 committed by Jelle Raaijmakers
parent 62c2c9df69
commit e7c1148ec6
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00

View file

@ -561,6 +561,11 @@ size_t UHCIController::poll_transfer_queue(QueueHead& transfer_queue)
while (descriptor) {
u32 status = descriptor->status();
if (status & TransferDescriptor::StatusBits::NAKReceived) {
transfer_still_in_progress = false;
break;
}
if (status & TransferDescriptor::StatusBits::Active) {
transfer_still_in_progress = true;
break;