Changes in uspace/drv/usbhub/usbhub.c [103a3626:4e8e1f5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r103a3626 r4e8e1f5 36 36 #include <bool.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 39 40 #include <usb_iface.h> 40 41 #include <usb/usbdrv.h> 41 42 #include <usb/descriptor.h> 43 #include <usb/recognise.h> 42 44 #include <usb/devreq.h> 43 45 #include <usb/classes/hub.h> … … 199 201 //ports powered, hub seems to be enabled 200 202 201 ipc_hangup(hc);203 async_hangup(hc); 202 204 203 205 //add the hub to list … … 317 319 } 318 320 321 devman_handle_t hc_handle; 322 opResult = usb_drv_find_hc(hub->device, &hc_handle); 323 if (opResult != EOK) { 324 usb_log_error("Failed to get handle of host controller: %s.\n", 325 str_error(opResult)); 326 return; 327 } 328 319 329 devman_handle_t child_handle; 320 opResult = usb_drv_register_child_in_devman(hc, hub->device,321 new_device_address, &child_handle);330 opResult = usb_device_register_child_in_devman(new_device_address, 331 hc_handle, hub->device, &child_handle); 322 332 if (opResult != EOK) { 323 333 dprintf(USB_LOG_LEVEL_ERROR, "could not start driver for new device"); … … 502 512 free(change_bitmap); 503 513 504 ipc_hangup(hc);514 async_hangup(hc); 505 515 fibril_mutex_lock(&usb_hub_list_lock); 506 516 }
Note:
See TracChangeset
for help on using the changeset viewer.