Changeset 4fbcd2a in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-04-02T16:55:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fefc27d
- Parents:
- 322a8066
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r322a8066 r4fbcd2a 315 315 return opResult; 316 316 } 317 if(usb_port_dev_connected(&status)){ 318 usb_hub_set_enable_port_feature_request(&request, port, 319 USB_HUB_FEATURE_PORT_RESET); 320 opResult = usb_pipe_control_read( 321 hub->control_pipe, 322 &request, sizeof(usb_device_request_setup_packet_t), 323 &status, 4, &rcvd_size 324 ); 325 if (opResult != EOK) { 326 usb_log_warning( 327 "could not reset port %d errno:%d\n", 328 port, opResult); 329 } 330 usb_log_debug("port reset\n"); 331 } 317 332 //set the status change bit, so it will be noticed in driver loop 318 if(usb_port_dev_connected(&status)){333 /*if(usb_port_dev_connected(&status)){ 319 334 usb_hub_set_disable_port_feature_request(&request, port, 320 335 USB_HUB_FEATURE_PORT_CONNECTION); … … 343 358 } 344 359 usb_log_debug("port set to enabled - should lead to connection change\n"); 345 } 360 }*/ 346 361 } 347 362 }
Note:
See TracChangeset
for help on using the changeset viewer.