Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e7e99bf in mainline


Ignore:
Timestamp:
2018-01-12T19:14:23Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
ba2e17f
Parents:
a75f9cbc
Message:

xhci: return ESTALL for USB Transaction Error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/commands.c

    ra75f9cbc re7e99bf  
    720720        }
    721721
    722         return cmd->status == XHCI_TRBC_SUCCESS ? EOK : EINVAL;
     722        switch (cmd->status) {
     723        case XHCI_TRBC_SUCCESS:
     724                return EOK;
     725        case XHCI_TRBC_USB_TRANSACTION_ERROR:
     726                return ESTALL;
     727        default:
     728                return EINVAL;
     729        }
    723730}
    724731
Note: See TracChangeset for help on using the changeset viewer.