Signaling (even D- vs D+ pullup) may not be stable
for a while.

- Dave

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 <[EMAIL PROTECTED]>


--- 1.124/drivers/usb/core/hub.c        Thu Jul  1 07:53:20 2004
+++ edited/drivers/usb/core/hub.c       Tue Jul 13 16:47:28 2004
@@ -1633,12 +1633,7 @@
                }
 
                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);

Reply via email to