mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
Kernel/USB: Handle NAK correctly in a transfer status bits
This commit is contained in:
parent
62c2c9df69
commit
e7c1148ec6
1 changed files with 5 additions and 0 deletions
|
@ -561,6 +561,11 @@ size_t UHCIController::poll_transfer_queue(QueueHead& transfer_queue)
|
||||||
while (descriptor) {
|
while (descriptor) {
|
||||||
u32 status = descriptor->status();
|
u32 status = descriptor->status();
|
||||||
|
|
||||||
|
if (status & TransferDescriptor::StatusBits::NAKReceived) {
|
||||||
|
transfer_still_in_progress = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (status & TransferDescriptor::StatusBits::Active) {
|
if (status & TransferDescriptor::StatusBits::Active) {
|
||||||
transfer_still_in_progress = true;
|
transfer_still_in_progress = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue