Changeset effbef3 in mainline
- Timestamp:
- 2018-01-22T15:42:45Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f685aa
- Parents:
- 998773d
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-22 15:41:58)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-22 15:42:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/usbhub.c
r998773d reffbef3 68 68 .interface_class = USB_CLASS_HUB, 69 69 .interface_subclass = 0, 70 .interface_protocol = 0,70 .interface_protocol = -1, 71 71 .flags = 0 72 72 }; … … 423 423 /* Set configuration. Use the configuration that was in 424 424 * usb_device->descriptors.configuration i.e. The first one. */ 425 constint opResult = usb_request_set_configuration(425 int opResult = usb_request_set_configuration( 426 426 usb_device_get_default_pipe(usb_device), 427 427 config_descriptor->configuration_number); … … 432 432 usb_log_debug("\tUsed configuration %d", 433 433 config_descriptor->configuration_number); 434 } 435 436 /* Check if this is a MTT hub */ 437 const size_t device_protocol = 438 usb_device_descriptors(usb_device)->device.device_protocol; 439 if (device_protocol == 2) { 440 usb_log_debug("This is a MTT hub. MTT not supported, switching to Single-TT."); 441 opResult = usb_request_set_interface(usb_device_get_default_pipe(usb_device), 1, 0); 442 if (opResult != EOK) 443 usb_log_error("Failed to switch to Single-TT protocol."); 434 444 } 435 445 return opResult;
Note:
See TracChangeset
for help on using the changeset viewer.