Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 40053529 in mainline


Ignore:
Timestamp:
2017-08-16T15:35:37Z (3 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
master
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.