Ignore:
Timestamp:
2017-10-04T10:06:10Z (7 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/hw_struct/regs.h

    r5c5c9407 r816335c  
    241241         * 15:14 - PIC
    242242         *          27  26  25  24  23  22  21  20  19  18  17  16
    243     * 27:16 - WOE WDE WCE CAS CEC PLC PRC OCC WRC PEC CSC LWS
     243        * 27:16 - WOE WDE WCE CAS CEC PLC PRC OCC WRC PEC CSC LWS
    244244         *    30 - DR
    245245         *    31 - WPR
     
    546546} xhci_sp_name_t;
    547547
     548static const xhci_sp_name_t xhci_name_usb = {
     549    .str = "USB "
     550};
     551
    548552static inline xhci_extcap_t *xhci_extcap_next(const xhci_extcap_t *cur)
    549553{
Note: See TracChangeset for help on using the changeset viewer.