Changeset 691130cf in mainline
- Timestamp:
- 2015-08-25T04:15:27Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8351f9a4
- Parents:
- ff0258f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_rh.c
rff0258f r691130cf 99 99 */ 100 100 int ehci_rh_init(ehci_rh_t *instance, ehci_caps_regs_t *caps, ehci_regs_t *regs, 101 const char *name)101 const char *name) 102 102 { 103 103 assert(instance); … … 116 116 usb_log_info("RH(%p): No power switching.", instance); 117 117 } 118 for (unsigned i = 0; i < instance->port_count; ++i) 119 usb_log_debug2("RH(%p-%u): status: %"PRIx32, instance, i, 120 EHCI_RD(regs->portsc[i])); 118 121 119 122 for (unsigned i = 0; i < EHCI_MAX_PORTS; ++i) { … … 295 298 /* Note feature numbers for test and indicator feature do not 296 299 * correspond to the port status bit locations */ 297 usb_log_debug2("RH(%p-%u) port status: %"PRIx32, hub, port, status); 300 usb_log_debug2("RH(%p-%u) port status: %"PRIx32"(%"PRIx32")", hub, port, 301 status, reg); 298 302 memcpy(data, &status, sizeof(status)); 299 303 *act_size = sizeof(status); … … 324 328 USB_PORTSC_ENABLED_FLAG)) { 325 329 usb_log_info("RH(%p-%u): Port not enabled after reset (%"PRIX32 326 "), giving up ownership", job->hub, job->port,327 EHCI_RD(job->hub->registers->portsc[job->port]));330 "), giving up ownership", job->hub, job->port, 331 EHCI_RD(job->hub->registers->portsc[job->port])); 328 332 EHCI_SET(job->hub->registers->portsc[job->port], 329 333 USB_PORTSC_PORT_OWNER_FLAG); … … 516 520 /* Write-clean bits are those that indicate change */ 517 521 uint32_t status = EHCI_RD(hub->registers->portsc[port]); 518 if ((status & USB_PORTSC_WC_MASK) 519 || hub->reset_flag[port] || hub->reset_flag[port]) { 522 if ((status & USB_PORTSC_WC_MASK) || hub->reset_flag[port]) { 520 523 /* Ignore new LS device */ 521 524 if ((status & USB_PORTSC_CONNECT_CH_FLAG) &&
Note:
See TracChangeset
for help on using the changeset viewer.