Changeset 129b821f in mainline for uspace/drv/bus/usb/usbhub/usbhub.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/drv/bus/usb/usbhub/usbhub.c

    r60d3f35 r129b821f  
    116116        }
    117117        hub_dev->usb_device = usb_dev;
     118        hub_dev->speed = usb_device_get_speed(usb_dev);
    118119
    119120        fibril_mutex_initialize(&hub_dev->default_address_guard);
     
    187188        }
    188189
    189         usb_log_info("Controlling hub '%s' (%p: %zu ports).",
     190        usb_log_info("Controlling %s-speed hub '%s' (%p: %zu ports).",
     191            usb_str_speed(hub_dev->speed),
    190192            usb_device_get_name(hub_dev->usb_device), hub_dev,
    191193            hub_dev->port_count);
Note: See TracChangeset for help on using the changeset viewer.