Changeset 3f3afb9 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-04-11T20:38:37Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1324ff3, a39cfb8
- Parents:
- 58226b4 (diff), d91645ab (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
r58226b4 r3f3afb9 179 179 } 180 180 181 /**182 * release default address used by given hub183 *184 * Also unsets hub->is_default_address_used. Convenience wrapper function.185 * @note hub->connection MUST be open for communication186 * @param hub hub representation187 * @return error code188 */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 200 181 201 182 //********************************************* … … 266 247 for (port = 0; port < hub_info->port_count + 1; port++) { 267 248 usb_hub_port_init(&hub_info->ports[port]); 249 } 250 for (port = 0; port < hub_info->port_count; port++) { 268 251 opResult = usb_hub_set_port_feature(hub_info->control_pipe, 269 port , USB_HUB_FEATURE_PORT_POWER);252 port+1, USB_HUB_FEATURE_PORT_POWER); 270 253 if (opResult != EOK) { 271 254 usb_log_error("cannot power on port %d; %d\n", 272 port , opResult);255 port+1, opResult); 273 256 } 274 257 }
Note:
See TracChangeset
for help on using the changeset viewer.