Changeset 816335c in mainline for uspace/drv/bus/usb/xhci/debug.c


Ignore:
Timestamp:
2017-10-04T10:06:10Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c68c713c
Parents:
5c5c9407
Message:

xhci: port speed detected properly

The correct way to determine protocol supported on a port is to look at the Port Speed value in the port register, and use it as an index to the speeds defined in extended capabilities. Now we support non-contiguous ranges of ports, USB 3.1, and the detection would work even for non-USB protocols.

File:
1 edited

Legend:

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

    r5c5c9407 r816335c  
    288288                        ports_from = XHCI_REG_RD(ec, XHCI_EC_SP_CP_OFF);
    289289                        ports_to = ports_from + XHCI_REG_RD(ec, XHCI_EC_SP_CP_COUNT) - 1;
    290                         usb_log_debug("\tProtocol %4s%u.%u, ports %u-%u", name.str,
     290                        usb_log_debug("\tProtocol %.4s%u.%u, ports %u-%u", name.str,
    291291                            XHCI_REG_RD(ec, XHCI_EC_SP_MAJOR),
    292292                            XHCI_REG_RD(ec, XHCI_EC_SP_MINOR),
Note: See TracChangeset for help on using the changeset viewer.