From 6e6fc3481821375887fe9c37d4231119a68f21c5 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 14 Jul 2004 01:08:21 -0700 Subject: [PATCH] [PATCH] USB: usb hub, don't check speed before reset Signaling (even D- vs D+ pullup) may not be stable for a while. At least one OTG root hub won't reliably (<10%) report device speed until after reset (and the OTG state transitions have quiesced for a while). This patch makes that not matter. Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/hub.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 68e10d9c66ef8..f817a8c23ef38 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1635,12 +1635,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port, } usb_set_device_state(udev, USB_STATE_POWERED); - - /* hub can tell if it's lowspeed already: D- pullup (not D+) */ - if (portstatus & USB_PORT_STAT_LOW_SPEED) - udev->speed = USB_SPEED_LOW; - else - udev->speed = USB_SPEED_UNKNOWN; + udev->speed = USB_SPEED_UNKNOWN; /* set the address */ choose_address(udev); -- 2.53.0