Changeset 66dcc24 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2017-07-24T20:00:22Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f5b613
Parents:
f7bd246
Message:

Fixed port regs reading on port change event, new devices are now properly detected! Good old off by one errors.

File:
1 edited

Legend:

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

    rf7bd246 r66dcc24  
    6565        uint8_t port_id = xhci_get_hub_port(trb);
    6666        usb_log_debug("Port status change event detected for port %u.", port_id);
    67         xhci_port_regs_t* regs = &hc->op_regs->portrs[port_id];
     67        xhci_port_regs_t* regs = &hc->op_regs->portrs[port_id - 1];
    6868
    6969        // Port reset change
Note: See TracChangeset for help on using the changeset viewer.