Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248789
b: refs/heads/master
c: 92a3da4
h: refs/heads/master
i:
  248787: 4dfdac5
v: v3
  • Loading branch information
Matt Evans authored and Sarah Sharp committed May 2, 2011
1 parent 1b0bbff commit c19441a
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: 28ccd2962c66556d7037b2d9f1c11cdcd3b805d5
refs/heads/master: 92a3da410aac6e14daaefe13c60368ca28e85830
5 changes: 5 additions & 0 deletions trunk/drivers/usb/host/xhci-ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -2193,6 +2193,11 @@ static void xhci_handle_event(struct xhci_hcd *xhci)
}
xhci_dbg(xhci, "%s - OS owns TRB\n", __func__);

/*
* Barrier between reading the TRB_CYCLE (valid) flag above and any
* speculative reads of the event's flags/data below.
*/
rmb();
/* FIXME: Handle more event types. */
switch ((le32_to_cpu(event->event_cmd.flags) & TRB_TYPE_BITMASK)) {
case TRB_TYPE(TRB_COMPLETION):
Expand Down

0 comments on commit c19441a

Please sign in to comment.