Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289679
b: refs/heads/master
c: 3fe4fe0
h: refs/heads/master
i:
  289677: 564eb26
  289675: 64ee911
  289671: 47f5a63
  289663: bc9c1a2
v: v3
  • Loading branch information
Andiry Xu authored and Sarah Sharp committed Mar 13, 2012
1 parent 0ec27c0 commit 68e70c9
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 3b72fca09d7aed0c1a390370eb3f3f4f0480702a
refs/heads/master: 3fe4fe083d3355537565b2b0a678807513dfa013
2 changes: 2 additions & 0 deletions trunk/drivers/usb/host/xhci-mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ static struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci,
if (!ring)
return NULL;

ring->num_segs = num_segs;
INIT_LIST_HEAD(&ring->td_list);
ring->type = type;
if (num_segs == 0)
Expand All @@ -177,6 +178,7 @@ static struct xhci_ring *xhci_ring_alloc(struct xhci_hcd *xhci,
num_segs--;
}
xhci_link_segments(xhci, prev, ring->first_seg, type);
ring->last_seg = prev;

/* Only event ring does not use link TRB */
if (type != TYPE_EVENT) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/usb/host/xhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,7 @@ enum xhci_ring_type {

struct xhci_ring {
struct xhci_segment *first_seg;
struct xhci_segment *last_seg;
union xhci_trb *enqueue;
struct xhci_segment *enq_seg;
unsigned int enq_updates;
Expand All @@ -1276,6 +1277,7 @@ struct xhci_ring {
*/
u32 cycle_state;
unsigned int stream_id;
unsigned int num_segs;
enum xhci_ring_type type;
bool last_td_was_short;
};
Expand Down

0 comments on commit 68e70c9

Please sign in to comment.