Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262907
b: refs/heads/master
c: 72c487d
h: refs/heads/master
i:
  262905: 9eebc3b
  262903: 3bfe311
v: v3
  • Loading branch information
John Stultz authored and Felipe Balbi committed Aug 1, 2011
1 parent f8fdcd7 commit dad8d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4aefec5daf51ebda90ebf0989598c206cf8e640
refs/heads/master: 72c487dfb94d02025fb7437dfe2314d836d5a9ab
5 changes: 5 additions & 0 deletions trunk/drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,8 @@ static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on)

is_on = !!is_on;

pm_runtime_get_sync(musb->controller);

/* NOTE: this assumes we are sensing vbus; we'd rather
* not pullup unless the B-session is active.
*/
Expand All @@ -1707,6 +1709,9 @@ static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on)
musb_pullup(musb, is_on);
}
spin_unlock_irqrestore(&musb->lock, flags);

pm_runtime_put(musb->controller);

return 0;
}

Expand Down

0 comments on commit dad8d9c

Please sign in to comment.