]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: usbcore: inverted test for resuming interfaces
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 15 Jun 2005 19:49:48 +0000 (15:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Jun 2005 21:44:05 +0000 (14:44 -0700)
This one-liner fixes a test for interfaces that are already resumed.

It would be nice if this could get into 2.6.12, but it's not critical
since it only affects people doing selective (runtime) suspend/resume.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c

index 63ee3d97b6a968571bc1b706bd3e0cc4169f885c..32ff32181852baefc713c1b1e7a79382e3525a86 100644 (file)
@@ -1733,7 +1733,7 @@ static int finish_port_resume(struct usb_device *udev)
                        struct usb_driver       *driver;
 
                        intf = udev->actconfig->interface[i];
-                       if (intf->dev.power.power_state == PMSG_SUSPEND)
+                       if (intf->dev.power.power_state == PMSG_ON)
                                continue;
                        if (!intf->dev.driver) {
                                /* FIXME maybe force to alt 0 */