Changes in uspace/drv/usbhub/usbhub.c [206f71a:3e7b7cd] in mainline
- File:
-
- 1 edited
-
uspace/drv/usbhub/usbhub.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r206f71a r3e7b7cd 118 118 dprintf(USB_LOG_LEVEL_ERROR, 119 119 "could not initialize connection to device endpoint, errno %d",opResult); 120 return opResult; 121 } 122 123 opResult = usb_endpoint_pipe_probe_default_control(&hub->endpoints.control); 124 if (opResult != EOK) { 125 dprintf(USB_LOG_LEVEL_ERROR, "failed probing endpoint 0, %d", opResult); 126 return opResult; 127 } 128 129 return EOK; 120 } 121 return opResult; 130 122 } 131 123 … … 241 233 dprintf(USB_LOG_LEVEL_DEBUG, "starting control transaction"); 242 234 usb_endpoint_pipe_start_session(&result->endpoints.control); 243 opResult = usb_request_set_configuration(&result->endpoints.control, 1);244 assert(opResult == EOK);245 246 235 opResult = usb_request_get_descriptor(&result->endpoints.control, 247 236 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_DEVICE, … … 438 427 &new_device_pipe, 439 428 &new_device_connection); 440 usb_endpoint_pipe_probe_default_control(&new_device_pipe);441 429 /// \TODO get highspeed info 442 430 usb_speed_t speed = isLowSpeed?USB_SPEED_LOW:USB_SPEED_FULL; … … 446 434 usb_address_t new_device_address = usb_hc_request_address( 447 435 &hub->connection, 448 speed /// \TODO fullspeed??436 speed 449 437 ); 450 438 if (new_device_address < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
