]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
usb: dwc3: add count field to event buffer
authorFelipe Balbi <balbi@ti.com>
Mon, 4 Jul 2011 17:23:14 +0000 (20:23 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:10 +0000 (11:17 +0200)
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>
drivers/usb/dwc3/core.h

index e7b06798fb69d50c4678b7a8d9d8b70d58152cd1..cdd70cb78aa434aa2573f756c254b08b7298014e 100644 (file)
@@ -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)