From: Alan Stern Date: Wed, 15 Jun 2005 19:49:48 +0000 (-0400) Subject: [PATCH] USB: usbcore: inverted test for resuming interfaces X-Git-Tag: v2.6.13-rc1~51^2~8^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ed0c0c48c508578c30aa58f755ca0d692636906;p=linux-2.6-omap-h63xx.git [PATCH] USB: usbcore: inverted test for resuming interfaces 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 63ee3d97b6a..32ff3218185 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -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 */