Skip to content

Commit

Permalink
usb: dwc3: add count field to event buffer
Browse files Browse the repository at this point in the history
we can cache the last read value of the event
buffer count register on this field, for later
handling.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent abed411 commit 60d04bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/dwc3/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ struct dwc3_trb;
* @buf: _THE_ buffer
* @length: size of this buffer
* @lpos: event offset
* @count: cache of last read event count register
* @flags: flags related to this event buffer
* @dma: dma_addr_t
* @dwc: pointer to DWC controller
Expand All @@ -378,6 +379,7 @@ struct dwc3_event_buffer {
void *buf;
unsigned length;
unsigned int lpos;
unsigned int count;
unsigned int flags;

#define DWC3_EVENT_PENDING BIT(0)
Expand Down

0 comments on commit 60d04bb

Please sign in to comment.