Changeset 72af8da in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-03-16T18:50:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42a3a57
- Parents:
- 3e7b7cd (diff), fcf07e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r3e7b7cd r72af8da 118 118 dprintf(USB_LOG_LEVEL_ERROR, 119 119 "could not initialize connection to device endpoint, errno %d",opResult); 120 } 121 return 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; 122 130 } 123 131 … … 233 241 dprintf(USB_LOG_LEVEL_DEBUG, "starting control transaction"); 234 242 usb_endpoint_pipe_start_session(&result->endpoints.control); 243 opResult = usb_request_set_configuration(&result->endpoints.control, 1); 244 assert(opResult == EOK); 245 235 246 opResult = usb_request_get_descriptor(&result->endpoints.control, 236 247 USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_DEVICE, … … 427 438 &new_device_pipe, 428 439 &new_device_connection); 440 usb_endpoint_pipe_probe_default_control(&new_device_pipe); 429 441 /// \TODO get highspeed info 430 442 usb_speed_t speed = isLowSpeed?USB_SPEED_LOW:USB_SPEED_FULL;
Note:
See TracChangeset
for help on using the changeset viewer.