mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel/USB: Handle NAK correctly in a transfer status bits
This commit is contained in:
parent
62c2c9df69
commit
e7c1148ec6
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/e7c1148ec6 Pull-request: https://github.com/SerenityOS/serenity/pull/21085 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/FireFox317 Reviewed-by: https://github.com/Hendiadyoin1 ✅ Reviewed-by: https://github.com/gmta ✅
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue