Changeset a7528a16 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-03-18T14:58:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11ac272, e93e319
- Parents:
- a83e138
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
ra83e138 ra7528a16 402 402 */ 403 403 static void usb_hub_init_add_device(usb_hub_info_t * hub, uint16_t port, 404 bool isLowSpeed) {404 usb_speed_t speed) { 405 405 //if this hub already uses default address, it cannot request it once more 406 406 if(hub->is_default_address_used) return; … … 411 411 assert(hub->endpoints.control.hc_phone); 412 412 //get default address 413 usb_speed_t speed = isLowSpeed?USB_SPEED_LOW:USB_SPEED_FULL;414 413 opResult = usb_hc_reserve_default_address(&hub->connection, speed); 415 414 … … 617 616 if (usb_port_dev_connected(&status)) { 618 617 usb_log_info("some connection changed"); 619 usb_hub_init_add_device(hub, port, usb_port_ low_speed(&status));618 usb_hub_init_add_device(hub, port, usb_port_speed(&status)); 620 619 } else { 621 620 usb_hub_removed_device(hub, port);
Note:
See TracChangeset
for help on using the changeset viewer.