Changeset a1732929 in mainline for uspace/drv/bus/usb/ohci/ohci_rh.c
- Timestamp:
- 2018-01-15T17:04:34Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ff99e8
- Parents:
- c1a966e
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:32)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 17:04:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_rh.c
rc1a966e ra1732929 114 114 instance->registers = regs; 115 115 instance->port_count = OHCI_RD(regs->rh_desc_a) & RHDA_NDS_MASK; 116 usb_log_debug2("rh_desc_a: %x. \n", OHCI_RD(regs->rh_desc_a));116 usb_log_debug2("rh_desc_a: %x.", OHCI_RD(regs->rh_desc_a)); 117 117 if (instance->port_count > OHCI_MAX_PORTS) { 118 118 usb_log_warning("OHCI specification does not allow %d ports. " 119 "Max %d ports will be used. \n", instance->port_count,119 "Max %d ports will be used.", instance->port_count, 120 120 OHCI_MAX_PORTS); 121 121 instance->port_count = OHCI_MAX_PORTS; 122 122 } 123 usb_log_info("%s: Found %u ports. \n", name, instance->port_count);123 usb_log_info("%s: Found %u ports.", name, instance->port_count); 124 124 125 125 #if defined OHCI_POWER_SWITCH_no 126 usb_log_info("%s: Set power mode to no power switching. \n", name);126 usb_log_info("%s: Set power mode to no power switching.", name); 127 127 /* Set port power mode to no power-switching. (always on) */ 128 128 OHCI_SET(regs->rh_desc_a, RHDA_NPS_FLAG); … … 132 132 133 133 #elif defined OHCI_POWER_SWITCH_ganged 134 usb_log_info("%s: Set power mode to ganged power switching. \n", name);134 usb_log_info("%s: Set power mode to ganged power switching.", name); 135 135 /* Set port power mode to ganged power-switching. */ 136 136 OHCI_CLR(regs->rh_desc_a, RHDA_NPS_FLAG); … … 144 144 OHCI_CLR(regs->rh_desc_a, RHDA_OCPM_FLAG); 145 145 #else 146 usb_log_info("%s: Set power mode to per-port power switching. \n", name);146 usb_log_info("%s: Set power mode to per-port power switching.", name); 147 147 /* Set port power mode to per port power-switching. */ 148 148 OHCI_CLR(regs->rh_desc_a, RHDA_NPS_FLAG); … … 356 356 case USB_HUB_FEATURE_C_PORT_RESET: /*20*/ 357 357 usb_log_debug2("Clearing port C_CONNECTION, C_ENABLE, " 358 "C_SUSPEND, C_OC or C_RESET on port %u. \n", port);358 "C_SUSPEND, C_OC or C_RESET on port %u.", port); 359 359 /* Bit offsets correspond to the feature number */ 360 360 OHCI_WR(hub->registers->rh_port_status[port], … … 405 405 case USB_HUB_FEATURE_PORT_RESET: /*4*/ 406 406 usb_log_debug2("Setting port POWER, ENABLE, SUSPEND or RESET " 407 "on port %u. \n", port);407 "on port %u.", port); 408 408 /* Bit offsets correspond to the feature number */ 409 409 OHCI_WR(hub->registers->rh_port_status[port], 1 << feature); … … 451 451 } 452 452 453 usb_log_debug2("OHCI root hub interrupt mask: %hx. \n", mask);453 usb_log_debug2("OHCI root hub interrupt mask: %hx.", mask); 454 454 455 455 if (mask == 0)
Note:
See TracChangeset
for help on using the changeset viewer.