Changeset d32d51d in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2017-08-20T12:01:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07c08ea
- Parents:
- 5ff9e1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r5ff9e1d rd32d51d 220 220 goto err_event_ring; 221 221 222 return EOK; 223 222 if ((err = xhci_rh_init(&hc->rh))) 223 goto err_rh; 224 225 return EOK; 226 227 err_rh: 228 xhci_rh_fini(&hc->rh); 224 229 err_event_ring: 225 230 xhci_event_ring_fini(&hc->event_ring); … … 362 367 assert(batch); 363 368 369 /* Check for root hub communication */ 370 /* FIXME: Zero is a very crude workaround. Detect RH better. */ 371 if (batch->ep->address == 0) { 372 usb_log_debug("XHCI root hub request.\n"); 373 return xhci_rh_schedule(&hc->rh, batch); 374 } 375 364 376 usb_log_debug2("EP(%d:%d) started %s transfer of size %lu.", 365 377 batch->ep->address, batch->ep->endpoint, … … 386 398 } 387 399 388 return E NAK;400 return EOK; 389 401 } 390 402 … … 515 527 hc_dcbaa_fini(hc); 516 528 xhci_fini_commands(hc); 529 xhci_rh_fini(&hc->rh); 517 530 pio_disable(hc->base, RNGSZ(hc->mmio_range)); 518 531 usb_log_info("HC(%p): Finalized.", hc);
Note:
See TracChangeset
for help on using the changeset viewer.