Changeset 32b2a6f2 in mainline


Ignore:
Timestamp:
2018-01-21T16:47:05Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd3fa47
Parents:
b310cff4
Message:

usbhub: link state change cannot be cleared

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.c

    rb310cff4 r32b2a6f2  
    218218}
    219219
    220 static void port_changed_link_state(usb_hub_port_t *port, usb_port_status_t status)
    221 {
    222         port_log(debug2, port, "Port link state changed.");
    223 }
    224 
    225 
    226220typedef void (*change_handler_t)(usb_hub_port_t *, usb_port_status_t);
    227221
     
    232226        [USB_HUB_FEATURE_C_PORT_OVER_CURRENT] = &port_changed_overcurrent,
    233227        [USB_HUB_FEATURE_C_PORT_RESET] = &port_changed_reset,
    234         [USB_HUB_FEATURE_C_PORT_LINK_STATE] = &port_changed_link_state,
    235228        [sizeof(usb_port_status_t) * 8] = NULL,
    236229};
     
    255248        }
    256249
     250        if (port->hub->speed == USB_SPEED_SUPER)
     251                /* Link state change is not a change we shall clear, nor we care about it */
     252                status &= ~(1 << USB_HUB_FEATURE_C_PORT_LINK_STATE);
     253
    257254        for (uint32_t feature = 16; feature < sizeof(usb_port_status_t) * 8; ++feature) {
    258255                uint32_t mask = 1 << feature;
Note: See TracChangeset for help on using the changeset viewer.