Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15447
b: refs/heads/master
c: 0c8624f
h: refs/heads/master
i:
  15445: 5667106
  15443: 8383c96
  15439: 55b5499
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Jan 4, 2006
1 parent 3d0a77d commit b773e5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: d97cc2f2e938547a47daef29bc10ab38600a3310
refs/heads/master: 0c8624f91d91df7cdeb9b2dace3269b8788c845f
6 changes: 4 additions & 2 deletions trunk/drivers/usb/host/sl811-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,9 @@ sl811h_start(struct usb_hcd *hcd)
hcd->state = HC_STATE_RUNNING;

if (sl811->board) {
hcd->can_wakeup = sl811->board->can_wakeup;
if (!device_can_wakeup(hcd->self.controller))
device_init_wakeup(hcd->self.controller,
sl811->board->can_wakeup);
hcd->power_budget = sl811->board->power * 2;
}

Expand Down Expand Up @@ -1805,7 +1807,7 @@ sl811h_resume(struct platform_device *dev)
* let's assume it'd only be powered to enable remote wakeup.
*/
if (dev->dev.power.power_state.event == PM_EVENT_SUSPEND
|| !hcd->can_wakeup) {
|| !device_can_wakeup(&hcd->self.root_hub->dev)) {
sl811->port1 = 0;
port_power(sl811, 1);
return 0;
Expand Down

0 comments on commit b773e5c

Please sign in to comment.