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


Ignore:
Timestamp:
2018-01-12T18:49:16Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e7e99bf
Parents:
129e6f1
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-12 18:49:04)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-12 18:49:16)
Message:

xhci: try to identify custom speeds

File:
1 edited

Legend:

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

    r129e6f1 ra75f9cbc  
    313313                        ports_from = XHCI_REG_RD(ec, XHCI_EC_SP_CP_OFF);
    314314                        ports_to = ports_from + XHCI_REG_RD(ec, XHCI_EC_SP_CP_COUNT) - 1;
    315                         usb_log_debug("\tProtocol %.4s%u.%u, ports %u-%u", name.str,
     315                        unsigned psic = XHCI_REG_RD(ec, XHCI_EC_SP_PSIC);
     316
     317                        usb_log_debug("\tProtocol %.4s%u.%u, ports %u-%u, %u protocol speeds", name.str,
    316318                            XHCI_REG_RD(ec, XHCI_EC_SP_MAJOR),
    317319                            XHCI_REG_RD(ec, XHCI_EC_SP_MINOR),
    318                             ports_from, ports_to);
    319 
    320                         unsigned psic = XHCI_REG_RD(ec, XHCI_EC_SP_PSIC);
     320                            ports_from, ports_to, psic);
     321
    321322                        for (unsigned i = 0; i < psic; i++)
    322323                                xhci_dump_psi(xhci_extcap_psi(ec, i));
Note: See TracChangeset for help on using the changeset viewer.