Changes in uspace/drv/usbhub/usbhub.c [5e07e2b5:58226b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r5e07e2b5 r58226b4 45 45 #include <usb/request.h> 46 46 #include <usb/classes/hub.h> 47 #include <usb/devpoll.h>48 47 #include <stdio.h> 49 48 … … 180 179 } 181 180 181 /** 182 * release default address used by given hub 183 * 184 * Also unsets hub->is_default_address_used. Convenience wrapper function. 185 * @note hub->connection MUST be open for communication 186 * @param hub hub representation 187 * @return error code 188 */ 189 int usb_hub_release_default_address(usb_hub_info_t * hub) { 190 int opResult = usb_hc_release_default_address(&hub->connection); 191 if (opResult != EOK) { 192 usb_log_error("could not release default address, errno %d\n", 193 opResult); 194 return opResult; 195 } 196 hub->is_default_address_used = false; 197 return EOK; 198 } 199 182 200 183 201 //********************************************* … … 248 266 for (port = 0; port < hub_info->port_count + 1; port++) { 249 267 usb_hub_port_init(&hub_info->ports[port]); 250 }251 for (port = 0; port < hub_info->port_count; port++) {252 268 opResult = usb_hub_set_port_feature(hub_info->control_pipe, 253 port +1, USB_HUB_FEATURE_PORT_POWER);269 port, USB_HUB_FEATURE_PORT_POWER); 254 270 if (opResult != EOK) { 255 271 usb_log_error("cannot power on port %d; %d\n", 256 port +1, opResult);272 port, opResult); 257 273 } 258 274 }
Note:
See TracChangeset
for help on using the changeset viewer.