aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorJohn Youn <johnyoun@synopsys.com>2016-11-15 12:54:15 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-18 13:54:42 +0200
commitd9fa4c63f7662c2e0aa8096250072f244f7737f2 (patch)
tree93a3fbc7aedf66d5a6379d8de98bd7ce8aad9bad /drivers/usb/dwc3/core.h
parentusb: phy: phy-generic: add the implementation of .set_suspend (diff)
downloadlinux-dev-d9fa4c63f7662c2e0aa8096250072f244f7737f2.tar.xz
linux-dev-d9fa4c63f7662c2e0aa8096250072f244f7737f2.zip
usb: dwc3: core: add a event buffer cache
This extra buffer will be used so we can copy triggered events from our event buffer to this cache and process all of them later in bottom half handler. We need this in order to implement a workaround for a known erratum in recent DWC3 release. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-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 354de247356a..bf63756bc176 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -472,6 +472,7 @@ struct dwc3_trb;
/**
* struct dwc3_event_buffer - Software event buffer representation
* @buf: _THE_ buffer
+ * @cache: The buffer cache used in the threaded interrupt
* @length: size of this buffer
* @lpos: event offset
* @count: cache of last read event count register
@@ -481,6 +482,7 @@ struct dwc3_trb;
*/
struct dwc3_event_buffer {
void *buf;
+ void *cache;
unsigned length;
unsigned int lpos;
unsigned int count;