summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2012-04-27 13:56:23 +0300
committerFelipe Balbi <balbi@ti.com>2014-03-05 09:44:51 -0600
commit4cfcf876767ab845e1db0c0b2671db27b1a3586c (patch)
tree30dd0e94865b67e9cd5f09d3878f4c0359134c05 /drivers/usb/dwc3
parent81bc5599d66d741552fd8e519bcb91ed8d683786 (diff)
downloadlinux-4cfcf876767ab845e1db0c0b2671db27b1a3586c.tar.gz
linux-4cfcf876767ab845e1db0c0b2671db27b1a3586c.tar.bz2
linux-4cfcf876767ab845e1db0c0b2671db27b1a3586c.zip
usb: dwc3: add 'saved_state' field to dwc3_ep structure
This extra field will save endpoint state when we're about to enter hibernation. It will be used later to restore the endpoint state when resuming. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> 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 a2b01785bb3f..4c14796a5ffc 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -394,6 +394,7 @@ struct dwc3_event_buffer {
* @busy_slot: first slot which is owned by HW
* @desc: usb_endpoint_descriptor pointer
* @dwc: pointer to DWC controller
+ * @saved_state: ep state saved during hibernation
* @flags: endpoint flags (wedged, stalled, ...)
* @current_trb: index of current used trb
* @number: endpoint number (1 - 15)
@@ -416,6 +417,7 @@ struct dwc3_ep {
const struct usb_ss_ep_comp_descriptor *comp_desc;
struct dwc3 *dwc;
+ u32 saved_state;
unsigned flags;
#define DWC3_EP_ENABLED (1 << 0)
#define DWC3_EP_STALL (1 << 1)