Skip to content
Snippets Groups Projects
Commit 061895fb authored by Bin Meng's avatar Bin Meng Committed by Marek Vasut
Browse files

usb: hub: Clear BH reset status change for a 3.0 hub


USB 3.0 hubs report bit[5] in the port status change response as BH
reset. The hub shall set the C_BH_PORT_RESET field for this port.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent b9020352
No related branches found
No related tags found
No related merge requests found
...@@ -494,6 +494,12 @@ static int usb_scan_port(struct usb_device_scan *usb_scan) ...@@ -494,6 +494,12 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_RESET); usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_RESET);
} }
if ((portchange & USB_SS_PORT_STAT_C_BH_RESET) &&
usb_hub_is_superspeed(dev)) {
debug("port %d BH reset change\n", i + 1);
usb_clear_port_feature(dev, i + 1, USB_SS_PORT_FEAT_C_BH_RESET);
}
/* A new USB device is ready at this point */ /* A new USB device is ready at this point */
debug("devnum=%d port=%d: USB dev found\n", dev->devnum, i + 1); debug("devnum=%d port=%d: USB dev found\n", dev->devnum, i + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment