Changeset 19f0048 in mainline for uspace/drv/bus/usb/xhci/rh.c
- Timestamp:
- 2018-02-01T02:13:34Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 17d34a8
- Parents:
- 53fdf8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r53fdf8c r19f0048 113 113 xhci_sw_ring_init(&rh->event_ring, rh->max_ports); 114 114 115 joinable_fibril_start(rh->event_worker);116 117 115 return EOK; 118 116 } … … 290 288 } 291 289 292 void xhci_rh_startup(xhci_rh_t *rh) 293 { 290 void xhci_rh_start(xhci_rh_t *rh) 291 { 292 xhci_sw_ring_restart(&rh->event_ring); 293 joinable_fibril_start(rh->event_worker); 294 294 295 /* The reset changed status of all ports, and SW originated reason does 295 296 * not cause an interrupt. … … 311 312 } 312 313 314 /** 315 * Disconnect all devices on all ports. On contrary to ordinary disconnect, this 316 * function waits until the disconnection routine is over. 317 */ 318 void xhci_rh_stop(xhci_rh_t *rh) 319 { 320 xhci_sw_ring_stop(&rh->event_ring); 321 joinable_fibril_join(rh->event_worker); 322 323 for (uint8_t i = 0; i < rh->max_ports; ++i) { 324 rh_port_t * const port = &rh->ports[i]; 325 usb_port_disabled(&port->base, &rh_remove_device); 326 usb_port_fini(&port->base); 327 } 328 } 329 313 330 static int rh_worker(void *arg) 314 331 {
Note:
See TracChangeset
for help on using the changeset viewer.