diff mbox

USB suspend issue with 2.6.38-rc2 -- still there in RC4-g795abaf

Message ID Pine.LNX.4.44L0.1102141541120.1716-100000@iolanthe.rowland.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Alan Stern Feb. 14, 2011, 8:55 p.m. UTC
None
diff mbox

Patch

Index: usb-2.6/drivers/usb/core/hub.c
===================================================================
--- usb-2.6.orig/drivers/usb/core/hub.c
+++ usb-2.6/drivers/usb/core/hub.c
@@ -2457,21 +2457,6 @@  int usb_port_resume(struct usb_device *u
 static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
 {
 	struct usb_hub		*hub = usb_get_intfdata (intf);
-	struct usb_device	*hdev = hub->hdev;
-	unsigned		port1;
-
-	/* fail if children aren't already suspended */
-	for (port1 = 1; port1 <= hdev->maxchild; port1++) {
-		struct usb_device	*udev;
-
-		udev = hdev->children [port1-1];
-		if (udev && udev->can_submit) {
-			if (!(msg.event & PM_EVENT_AUTO))
-				dev_dbg(&intf->dev, "port %d nyet suspended\n",
-						port1);
-			return -EBUSY;
-		}
-	}
 
 	dev_dbg(&intf->dev, "%s\n", __func__);