From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 22 Sep 2017 07:04:42 +0200 Subject: [U-Boot] [PATCH 10/14] usb: hub: Clear BH reset status change for a 3.0 hub In-Reply-To: <1505742050-5697-11-git-send-email-bmeng.cn@gmail.com> References: <1505742050-5697-1-git-send-email-bmeng.cn@gmail.com> <1505742050-5697-11-git-send-email-bmeng.cn@gmail.com> Message-ID: <20450ad6-ffce-649e-4b3e-9e8ec474745d@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18.09.2017 15:40, Bin Meng wrote: > 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: Bin Meng > --- > > common/usb_hub.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/common/usb_hub.c b/common/usb_hub.c > index a9d21bc..325d16d 100644 > --- a/common/usb_hub.c > +++ b/common/usb_hub.c > @@ -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); > } > > + 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 */ > debug("devnum=%d port=%d: USB dev found\n", dev->devnum, i + 1); > > Reviewed-by: Stefan Roese Tested-by: Stefan Roese Thanks, Stefan