Changes in uspace/drv/bus/usb/usbhub/usbhub.c [fb2ef35:cae002c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/usbhub.c
rfb2ef35 rcae002c 99 99 fibril_condvar_initialize(&hub_dev->pending_ops_cv); 100 100 101 102 int opResult = usb_pipe_start_long_transfer(&usb_dev->ctrl_pipe); 103 if (opResult != EOK) { 104 usb_log_error("Failed to start long ctrl pipe transfer: %s\n", 101 /* Create hc connection */ 102 usb_log_debug("Initializing USB wire abstraction.\n"); 103 int opResult = usb_hc_connection_initialize_from_device( 104 &hub_dev->connection, hub_dev->usb_device->ddf_dev); 105 if (opResult != EOK) { 106 usb_log_error("Could not initialize connection to device: %s\n", 105 107 str_error(opResult)); 106 108 return opResult; … … 110 112 opResult = usb_set_first_configuration(usb_dev); 111 113 if (opResult != EOK) { 112 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);113 114 usb_log_error("Could not set hub configuration: %s\n", 114 115 str_error(opResult)); … … 119 120 opResult = usb_hub_process_hub_specific_info(hub_dev); 120 121 if (opResult != EOK) { 121 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);122 122 usb_log_error("Could process hub specific info, %s\n", 123 123 str_error(opResult)); … … 130 130 fun_exposed, HUB_FNC_NAME); 131 131 if (hub_dev->hub_fun == NULL) { 132 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);133 132 usb_log_error("Failed to create hub function.\n"); 134 133 return ENOMEM; … … 138 137 opResult = ddf_fun_bind(hub_dev->hub_fun); 139 138 if (opResult != EOK) { 140 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);141 139 usb_log_error("Failed to bind hub function: %s.\n", 142 140 str_error(opResult)); … … 150 148 usb_hub_polling_terminated_callback, hub_dev); 151 149 if (opResult != EOK) { 152 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);153 150 /* Function is already bound */ 154 151 ddf_fun_unbind(hub_dev->hub_fun); … … 162 159 hub_dev->usb_device->ddf_dev->name, hub_dev->port_count); 163 160 164 usb_pipe_end_long_transfer(&usb_dev->ctrl_pipe);165 161 return EOK; 166 162 }
Note:
See TracChangeset
for help on using the changeset viewer.