Changeset 129b821f in mainline for uspace/lib/usbhost/src/utility.c


Ignore:
Timestamp:
2018-01-20T12:34:50Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
682c9354
Parents:
60d3f35
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-20 12:33:42)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-20 12:34:50)
Message:

usbhub: be aware of its own speed

This resulted in a bunch of changes just because the roothubs in older
HC's are virtual, and need to be aware of their own speed too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/utility.c

    r60d3f35 r129b821f  
    177177 * @return Error code
    178178 */
    179 int hc_setup_virtual_root_hub(hc_device_t *hcd)
     179int hc_setup_virtual_root_hub(hc_device_t *hcd, usb_speed_t rh_speed)
    180180{
    181181        int err;
     
    183183        assert(hcd);
    184184
    185         device_t *dev = hcd_ddf_fun_create(hcd, USB_SPEED_MAX);
     185        device_t *dev = hcd_ddf_fun_create(hcd, rh_speed);
    186186        if (!dev) {
    187187                usb_log_error("Failed to create function for the root hub.");
Note: See TracChangeset for help on using the changeset viewer.