Changeset 40053529 in mainline


Ignore:
Timestamp:
2017-08-16T15:35:37Z (7 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d967aa1
Parents:
d31705d
Message:

Fixed port reset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    rd31705d r40053529  
    213213{
    214214        usb_log_debug2("Resetting port %u.", port);
    215         xhci_port_regs_t regs = hc->op_regs->portrs[port];
    216         XHCI_REG_WR(&regs, XHCI_PORT_PR, 1);
     215        xhci_port_regs_t *regs = &hc->op_regs->portrs[port-1];
     216        XHCI_REG_WR(regs, XHCI_PORT_PR, 1);
    217217
    218218        return EOK;
Note: See TracChangeset for help on using the changeset viewer.