Changeset 7c3fb9b in mainline for uspace/drv/bus/usb/ehci/ehci_rh.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 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/ehci/ehci_rh.c
rfac0ac7 r7c3fb9b 72 72 instance->hub_descriptor.header.descriptor_type = USB_DESCTYPE_HUB; 73 73 instance->hub_descriptor.header.port_count = instance->port_count; 74 /* Bits 0,1 indicate power switching mode 74 /* 75 * Bits 0,1 indicate power switching mode 75 76 * Bit 2 indicates device type (compound device) 76 * Bits 3,4 indicate over-current protection mode */ 77 * Bits 3,4 indicate over-current protection mode 78 */ 77 79 instance->hub_descriptor.header.characteristics = 0 | 78 80 ((hcs & EHCI_CAPS_HCS_PPC_FLAG) ? 0x09 : 0x12) | … … 313 315 EHCI2USB(reg, USB_PORTSC_OC_CHANGE_FLAG, USB_HUB_PORT_STATUS_C_OC) | 314 316 (hub->reset_flag[port] ? USB_HUB_PORT_STATUS_C_RESET : 0)); 315 /* Note feature numbers for test and indicator feature do not 316 * correspond to the port status bit locations */ 317 /* 318 * Note feature numbers for test and indicator feature do not 319 * correspond to the port status bit locations 320 */ 317 321 usb_log_debug2("RH(%p-%u) port status: %" PRIx32 "(%" PRIx32 ")", hub, port, 318 322 status, reg); … … 340 344 } 341 345 usb_log_debug("RH(%p-%u): Reset complete", job->hub, job->port); 342 /* Handle port ownership, if the port is not enabled 343 * after reset it's a full speed device */ 346 /* 347 * Handle port ownership, if the port is not enabled 348 * after reset it's a full speed device 349 */ 344 350 if (!(EHCI_RD(job->hub->registers->portsc[job->port]) & 345 351 USB_PORTSC_ENABLED_FLAG)) {
Note:
See TracChangeset
for help on using the changeset viewer.