Changeset 32b2a6f2 in mainline for uspace/drv/bus/usb/usbhub/port.c
- Timestamp:
- 2018-01-21T16:47:05Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd3fa47
- Parents:
- b310cff4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.c
rb310cff4 r32b2a6f2 218 218 } 219 219 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 226 220 typedef void (*change_handler_t)(usb_hub_port_t *, usb_port_status_t); 227 221 … … 232 226 [USB_HUB_FEATURE_C_PORT_OVER_CURRENT] = &port_changed_overcurrent, 233 227 [USB_HUB_FEATURE_C_PORT_RESET] = &port_changed_reset, 234 [USB_HUB_FEATURE_C_PORT_LINK_STATE] = &port_changed_link_state,235 228 [sizeof(usb_port_status_t) * 8] = NULL, 236 229 }; … … 255 248 } 256 249 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 257 254 for (uint32_t feature = 16; feature < sizeof(usb_port_status_t) * 8; ++feature) { 258 255 uint32_t mask = 1 << feature;
Note:
See TracChangeset
for help on using the changeset viewer.