Commit 0ed0c0c4 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[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: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 822e14ac
...@@ -1733,7 +1733,7 @@ static int finish_port_resume(struct usb_device *udev) ...@@ -1733,7 +1733,7 @@ static int finish_port_resume(struct usb_device *udev)
struct usb_driver *driver; struct usb_driver *driver;
intf = udev->actconfig->interface[i]; intf = udev->actconfig->interface[i];
if (intf->dev.power.power_state == PMSG_SUSPEND) if (intf->dev.power.power_state == PMSG_ON)
continue; continue;
if (!intf->dev.driver) { if (!intf->dev.driver) {
/* FIXME maybe force to alt 0 */ /* FIXME maybe force to alt 0 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment