Changeset c7dd69d in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-04-15T13:19:59Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da1dd48
- Parents:
- e3b5129 (diff), 8fd4ba0 (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
re3b5129 rc7dd69d 45 45 #include <usb/request.h> 46 46 #include <usb/classes/hub.h> 47 #include <usb/devpoll.h> 47 48 #include <stdio.h> 48 49 … … 247 248 for (port = 0; port < hub_info->port_count + 1; port++) { 248 249 usb_hub_port_init(&hub_info->ports[port]); 250 } 251 for (port = 0; port < hub_info->port_count; port++) { 252 opResult = usb_hub_set_port_feature(hub_info->control_pipe, 253 port+1, USB_HUB_FEATURE_PORT_POWER); 254 if (opResult != EOK) { 255 usb_log_error("cannot power on port %d; %d\n", 256 port+1, opResult); 257 } 249 258 } 250 259 usb_log_debug2("freeing data\n");
Note:
See TracChangeset
for help on using the changeset viewer.