]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: usb hub, don't check speed before reset
authorDavid Brownell <david-b@pacbell.net>
Wed, 14 Jul 2004 08:08:21 +0000 (01:08 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 08:08:21 +0000 (01:08 -0700)
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 <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/core/hub.c

index 68e10d9c66ef830ee209d4f7696853692fa41800..f817a8c23ef3888e6c5ad87c2a36595b6d882ede 100644 (file)
@@ -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);