aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-07-04 20:23:14 +0300
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:10 +0200
commit60d04bbee0b729dc1e95d4dc669f68dea2a32570 (patch)
tree8121b1d23c1260c43fa93d9551094b088e967902 /drivers/usb/dwc3
parentabed411869770a0f6c31e66388d7566bae672c2c (diff)
downloadlinux-linaro-stable-60d04bbee0b729dc1e95d4dc669f68dea2a32570.tar.gz
usb: dwc3: add count field to event buffer
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index e7b06798fb69..cdd70cb78aa4 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -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
@@ -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)