Changeset 8fe29a7c in mainline for uspace/drv/bus/usb/xhci/transfers.c
- Timestamp:
- 2018-01-18T17:12:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41abf3c
- Parents:
- fb28cde
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/transfers.c
rfb28cde r8fe29a7c 358 358 359 359 case XHCI_TRBC_BABBLE_DETECTED_ERROR: 360 usb_log_warning("Babble detected during the transfer. Resetting endpoint.");360 usb_log_warning("Babble detected during the transfer."); 361 361 batch->error = EAGAIN; 362 362 batch->transfered_size = 0; 363 hc_reset_endpoint(hc, slot_id, ep_dci);364 363 break; 365 364 366 365 case XHCI_TRBC_USB_TRANSACTION_ERROR: 367 usb_log_warning("USB Transaction error. Resetting endpoint.");366 usb_log_warning("USB Transaction error."); 368 367 batch->error = ESTALL; 369 368 batch->transfered_size = 0; 370 hc_reset_endpoint(hc, slot_id, ep_dci);371 369 break; 372 370 … … 392 390 usb_log_warning("Transfer not successfull: %u", completion_code); 393 391 batch->error = EIO; 392 } 393 394 395 if (xhci_endpoint_get_state(ep) == EP_STATE_HALTED) { 396 usb_log_debug("Endpoint halted, resetting endpoint."); 397 xhci_endpoint_clear_halt(ep, batch->target.stream); 398 394 399 } 395 400
Note:
See TracChangeset
for help on using the changeset viewer.