Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235419
b: refs/heads/master
c: 019a35f
h: refs/heads/master
i:
  235417: a278f05
  235415: e964249
v: v3
  • Loading branch information
Andiry Xu authored and Sarah Sharp committed Mar 14, 2011
1 parent 0291523 commit 121f99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 518e848ea8e2932ce18ce2daef8ad5f55a145f27
refs/heads/master: 019a35f1142b1cd153c8a38338515e633ec0cf77
7 changes: 1 addition & 6 deletions trunk/drivers/usb/host/xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,8 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
{
u32 command, temp = 0;
struct usb_hcd *hcd = xhci_to_hcd(xhci);
int old_state, retval;
int retval;

old_state = hcd->state;
if (time_before(jiffies, xhci->next_statechange))
msleep(100);

Expand Down Expand Up @@ -782,10 +781,6 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
*/

set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags);
if (!hibernated)
hcd->state = old_state;
else
hcd->state = HC_STATE_SUSPENDED;

spin_unlock_irq(&xhci->lock);
return 0;
Expand Down

0 comments on commit 121f99b

Please sign in to comment.