Changes in uspace/drv/usbhub/usbhub.c [e93e319:a7528a16] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
re93e319 ra7528a16 405 405 //if this hub already uses default address, it cannot request it once more 406 406 if(hub->is_default_address_used) return; 407 int opResult = usb_hub_clear_port_feature(&hub->endpoints.control,408 port, USB_HUB_FEATURE_C_PORT_CONNECTION);409 if(opResult != EOK){410 usb_log_warning("could not clear port-change-connection flag");411 }412 407 413 408 usb_device_request_setup_packet_t request; 409 int opResult; 414 410 usb_log_info("some connection changed"); 415 411 assert(hub->endpoints.control.hc_phone); … … 435 431 usb_hub_release_default_address(hub); 436 432 } 437 return;438 433 } 439 434 … … 536 531 static void usb_hub_removed_device( 537 532 usb_hub_info_t * hub,uint16_t port) { 538 539 int opResult = usb_hub_clear_port_feature(&hub->endpoints.control, 540 port, USB_HUB_FEATURE_C_PORT_CONNECTION); 541 if(opResult != EOK){ 542 usb_log_warning("could not clear port-change-connection flag"); 543 } 533 544 534 /** \TODO remove device from device manager - not yet implemented in 545 535 * devide manager … … 621 611 //something connected/disconnected 622 612 if (usb_port_connect_change(&status)) { 613 opResult = usb_hub_clear_port_feature(pipe, 614 port, USB_HUB_FEATURE_C_PORT_CONNECTION); 615 // TODO: check opResult 623 616 if (usb_port_dev_connected(&status)) { 624 617 usb_log_info("some connection changed");
Note:
See TracChangeset
for help on using the changeset viewer.