Changeset e7e99bf in mainline


Ignore:
Timestamp:
2018-01-12T19:14:23Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.