we can cache the last read value of the event
buffer count register on this field, for later
handling.

Signed-off-by: Felipe Balbi <ba...@ti.com>
---
 drivers/usb/dwc3/core.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index e7b0679..5e87cc0 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -371,6 +371,7 @@ struct dwc3_trb;
  * @length: size of this buffer
  * @lpos: event offset
  * @flags: flags related to this event buffer
+ * @count: cache of last read event count register
  * @dma: dma_addr_t
  * @dwc: pointer to DWC controller
  */
@@ -379,6 +380,7 @@ struct dwc3_event_buffer {
        unsigned                length;
        unsigned int            lpos;
        unsigned int            flags;
+       unsigned int            count;
 
 #define DWC3_EVENT_PENDING     BIT(0)
 
-- 
1.8.1.rc1.5.g7e0651a

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to