Changes in / [d8e61b0d:98637224] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
rd8e61b0d r98637224 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 } 407 412 408 413 usb_device_request_setup_packet_t request; 409 int opResult;410 414 usb_log_info("some connection changed"); 411 415 assert(hub->endpoints.control.hc_phone); … … 431 435 usb_hub_release_default_address(hub); 432 436 } 437 return; 433 438 } 434 439 … … 531 536 static void usb_hub_removed_device( 532 537 usb_hub_info_t * hub,uint16_t port) { 533 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 } 534 544 /** \TODO remove device from device manager - not yet implemented in 535 545 * devide manager … … 611 621 //something connected/disconnected 612 622 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 opResult616 623 if (usb_port_dev_connected(&status)) { 617 624 usb_log_info("some connection changed");
Note:
See TracChangeset
for help on using the changeset viewer.