Changeset b19131c5 in mainline for uspace/drv/bus/usb/xhci/hc.c
- Timestamp:
- 2017-07-06T13:20:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3256a6c
- Parents:
- 8cbc167
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r8cbc167 rb19131c5 41 41 #include "hc.h" 42 42 #include "hw_struct/trb.h" 43 #include "scratchpad.h" 43 44 44 45 static const irq_cmd_t irq_commands[] = { … … 206 207 goto err_cmd_ring; 207 208 208 // TODO: Allocate scratchpad buffers 209 210 return EOK; 211 209 if ((err = xhci_scratchpad_alloc(hc))) 210 goto err_scratchpad; 211 212 return EOK; 213 214 err_scratchpad: 212 215 xhci_event_ring_fini(&hc->event_ring); 213 216 err_cmd_ring: … … 434 437 xhci_trb_ring_fini(&hc->command_ring); 435 438 xhci_event_ring_fini(&hc->event_ring); 439 xhci_scratchpad_free(hc); 436 440 pio_disable(hc->base, RNGSZ(hc->mmio_range)); 437 441 usb_log_info("HC(%p): Finalized.", hc);
Note:
See TracChangeset
for help on using the changeset viewer.