Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200683
b: refs/heads/master
c: 4882662
h: refs/heads/master
i:
  200681: 50a707c
  200679: 6179ca0
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jun 30, 2010
1 parent 9cd0e11 commit a070bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03ab7461df3c74c9418c3f5485ea1127ece1ff79
refs/heads/master: 48826626263d4a61d06fd8c5805da31f925aefa0
13 changes: 3 additions & 10 deletions trunk/drivers/usb/core/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,7 @@ static int usb_resume_both(struct usb_device *udev, pm_message_t msg)

static void choose_wakeup(struct usb_device *udev, pm_message_t msg)
{
int w, i;
struct usb_interface *intf;
int w;

/* Remote wakeup is needed only when we actually go to sleep.
* For things like FREEZE and QUIESCE, if the device is already
Expand All @@ -1285,16 +1284,10 @@ static void choose_wakeup(struct usb_device *udev, pm_message_t msg)
return;
}

/* If remote wakeup is permitted, see whether any interface drivers
/* Enable remote wakeup if it is allowed, even if no interface drivers
* actually want it.
*/
w = 0;
if (device_may_wakeup(&udev->dev) && udev->actconfig) {
for (i = 0; i < udev->actconfig->desc.bNumInterfaces; i++) {
intf = udev->actconfig->interface[i];
w |= intf->needs_remote_wakeup;
}
}
w = device_may_wakeup(&udev->dev);

/* If the device is autosuspended with the wrong wakeup setting,
* autoresume now so the setting can be changed.
Expand Down

0 comments on commit a070bd2

Please sign in to comment.