From af9a4eb329e0f6cf580218205d2f0c2d76587c62 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 24 Feb 2011 10:17:04 -0800 Subject: [PATCH] Revert "USB: prevent buggy hubs from crashing the USB stack" This reverts commit de3e365127bc56dd0b1f8d684b184d43efcd50b4 as it breaks the musb host controller. This patch will come back after the musb fix goes upstream to Linus's tree. Cc: Alan Stern Cc: Perry Neben Cc: Felipe Balbi Cc: Alexander Holler Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/hub.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 31edd87463a6..32d0ad29e23a 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -2744,11 +2744,6 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, udev->ttport = hdev->ttport; } else if (udev->speed != USB_SPEED_HIGH && hdev->speed == USB_SPEED_HIGH) { - if (!hub->tt.hub) { - dev_err(&udev->dev, "parent hub has no TT\n"); - retval = -EINVAL; - goto fail; - } udev->tt = &hub->tt; udev->ttport = port1; } -- 2.39.2