Changeset 2833bb4 in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2018-01-19T17:38:22Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e5a12b
Parents:
944f8fdd
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-19 17:38:10)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-19 17:38:22)
Message:

xhci: recognise hubs

File:
1 edited

Legend:

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

    r944f8fdd r2833bb4  
    777777        XHCI_SLOT_SPEED_SET(*ctx, usb_speed_to_psiv[dev->base.speed]);
    778778
     779        /*
     780         * Note: This function is used even before this flag can be set, to
     781         *       issue the address device command. It is OK, because these
     782         *       flags are not required to be valid for that command.
     783         */
     784        if (dev->is_hub) {
     785                XHCI_SLOT_HUB_SET(*ctx, 1);
     786                XHCI_SLOT_NUM_PORTS_SET(*ctx, dev->num_ports);
     787                XHCI_SLOT_TT_THINK_TIME_SET(*ctx, dev->tt_think_time);
     788                XHCI_SLOT_MTT_SET(*ctx, 0); // MTT not supported yet
     789        }
     790
    779791        /* Setup Transaction Translation. TODO: Test this with HS hub. */
    780792        if (dev->base.tt.dev != NULL) {
Note: See TracChangeset for help on using the changeset viewer.