Changeset f97717d9 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-03-25T16:22:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da3dafc, e6223239
- Parents:
- d8421c4 (diff), f08c560 (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
rd8421c4 rf97717d9 132 132 return opResult; 133 133 } 134 usb_log_ info("setting port count to %d\n",descriptor->ports_count);134 usb_log_debug("setting port count to %d\n",descriptor->ports_count); 135 135 hub_info->port_count = descriptor->ports_count; 136 136 hub_info->attached_devs = (usb_hc_attached_device_t*) … … 159 159 usb_standard_device_descriptor_t *std_descriptor 160 160 = &hub_info->usb_device->descriptors.device; 161 usb_log_ info("hub has %d configurations\n",161 usb_log_debug("hub has %d configurations\n", 162 162 std_descriptor->configuration_count); 163 163 if(std_descriptor->configuration_count<1){ … … 288 288 //if this hub already uses default address, it cannot request it once more 289 289 if(hub->is_default_address_used) return; 290 usb_log_ info("some connection changed\n");290 usb_log_debug("some connection changed\n"); 291 291 assert(hub->control_pipe->hc_phone); 292 292 int opResult = usb_hub_clear_port_feature(hub->control_pipe, … … 331 331 332 332 int opResult; 333 usb_log_ info("finalizing add device\n");333 usb_log_debug("finalizing add device\n"); 334 334 opResult = usb_hub_clear_port_feature(hub->control_pipe, 335 335 port, USB_HUB_FEATURE_C_PORT_RESET); … … 363 363 return; 364 364 } 365 usb_log_ info("setting new address %d\n",new_device_address);365 usb_log_debug("setting new address %d\n",new_device_address); 366 366 //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT, 367 367 // new_device_address); … … 403 403 return; 404 404 } 405 usb_log_info("new device address %d, handle %zu\n", 405 usb_log_info("Detected new device on `%s' (port %d), " \ 406 "address %d (handle %llu).\n", 407 hub->usb_device->ddf_dev->name, (int) port, 406 408 new_device_address, child_handle); 407 408 409 } 409 410 … … 502 503 if (usb_port_connect_change(&status)) { 503 504 if (usb_port_dev_connected(&status)) { 504 usb_log_ info("some connection changed\n");505 usb_log_debug("some connection changed\n"); 505 506 usb_hub_init_add_device(hub, port, usb_port_speed(&status)); 506 507 } else { … … 514 515 usb_hub_over_current(hub,port); 515 516 }else{ 516 usb_log_ info("over current condition was auto-resolved on port %d\n",517 usb_log_debug("over current condition was auto-resolved on port %d\n", 517 518 port); 518 519 } … … 520 521 //port reset 521 522 if (usb_port_reset_completed(&status)) { 522 usb_log_ info("port reset complete\n");523 usb_log_debug("port reset complete\n"); 523 524 if (usb_port_enabled(&status)) { 524 525 usb_hub_finalize_add_device(hub, port, usb_port_speed(&status));
Note:
See TracChangeset
for help on using the changeset viewer.