Changeset 7c3fb9b in mainline for uspace/drv/bus/usb/uhci/uhci_rh.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci_rh.c
rfac0ac7 r7c3fb9b 153 153 while ((port_status = pio_read_16(port)) & STATUS_IN_RESET) 154 154 ; 155 /* PIO delay, should not be longer than 3ms as the device might 156 * enter suspend state. */ 155 /* 156 * PIO delay, should not be longer than 3ms as the device might 157 * enter suspend state. 158 */ 157 159 udelay(10); 158 /* Drop ConnectionChange as some UHCI hw 159 * sets this bit after reset, that is incorrect */ 160 /* 161 * Drop ConnectionChange as some UHCI hw 162 * sets this bit after reset, that is incorrect 163 */ 160 164 port_status &= ~STATUS_WC_BITS; 161 165 pio_write_16(port, port_status | STATUS_ENABLED | STATUS_CONNECTED_CHANGED); … … 376 380 RH_DEBUG(hub, port, "Set port change flag (status %" PRIx16 377 381 ")", status); 378 /* These are voluntary and don't have to be set 379 * there is no way we could do it on UHCI anyway */ 382 /* 383 * These are voluntary and don't have to be set 384 * there is no way we could do it on UHCI anyway 385 */ 380 386 break; 381 387 default: … … 459 465 CLASS_REQ_OUT(USB_REQUEST_RECIPIENT_DEVICE, USB_HUB_REQUEST_CLEAR_FEATURE), 460 466 .name = "ClearHubFeature", 461 /* Hub features are overcurrent and supply good, 462 * this request may only clear changes that we never report*/ 467 /* 468 * Hub features are overcurrent and supply good, 469 * this request may only clear changes that we never report 470 */ 463 471 .callback = req_nop, 464 472 }, … … 471 479 CLASS_REQ_IN(USB_REQUEST_RECIPIENT_DEVICE, USB_HUB_REQUEST_GET_STATUS), 472 480 .name = "GetHubStatus", 473 /* UHCI can't report OC condition or, 474 * lose power source */ 481 /* 482 * UHCI can't report OC condition or, 483 * lose power source 484 */ 475 485 .callback = virthub_base_get_null_status, 476 486 }, … … 483 493 CLASS_REQ_OUT(USB_REQUEST_RECIPIENT_DEVICE, USB_HUB_REQUEST_SET_FEATURE), 484 494 .name = "SetHubFeature", 485 /* Hub features are overcurrent and supply good, 486 * this request may only set changes that we never report*/ 495 /* 496 * Hub features are overcurrent and supply good, 497 * this request may only set changes that we never report 498 */ 487 499 .callback = req_nop, 488 500 },
Note:
See TracChangeset
for help on using the changeset viewer.