Skip to content

Commit

Permalink
Merge tag 'JH7110_515_SDK_v5.8.0' into vf2-devel
Browse files Browse the repository at this point in the history
  • Loading branch information
andyhu-stf committed Oct 12, 2023
2 parents 3292692 + 6f58ddd commit 17e00aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/usb_hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ int usb_hub_port_connect_change(struct usb_device *dev, int port)
return ret;
}

if (le16_to_cpu(portsts->wPortChange) & USB_PORT_STAT_C_OVERCURRENT)
return -EIO;

switch (portstatus & USB_PORT_STAT_SPEED_MASK) {
case USB_PORT_STAT_SUPER_SPEED:
speed = USB_SPEED_SUPER;
Expand Down

0 comments on commit 17e00aa

Please sign in to comment.