Hello. On 26-02-2013 13:34, Felipe Balbi wrote:
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@xxxxxx> --- 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;
You probably wanted to insert this member after the next #define since that one is related to the 'flags' member as follows from the previous patch.
#define DWC3_EVENT_PENDING BIT(0)
WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html