diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-08 17:55:58 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:17:00 +0200 |
commit | 9fcb3bd8d12db29c101d3722d37ddef9d1915317 (patch) | |
tree | 3e0f55e5a6041ff7dd059862d51a20149f4c397c /drivers/usb/dwc3/gadget.c | |
parent | 8698e2acf3a5e8d6f260ca7675f94e5087df5ae8 (diff) | |
download | linux-9fcb3bd8d12db29c101d3722d37ddef9d1915317.tar.bz2 |
usb: dwc3: gadget: save state of pullups
This will be used during resume to verify
if we should reconnect our pullups or not.
Tested-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index db2031725abc..04e4812fe2f9 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1425,8 +1425,10 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on) if (dwc->revision >= DWC3_REVISION_194A) reg &= ~DWC3_DCTL_KEEP_CONNECT; reg |= DWC3_DCTL_RUN_STOP; + dwc->pullups_connected = true; } else { reg &= ~DWC3_DCTL_RUN_STOP; + dwc->pullups_connected = false; } dwc3_writel(dwc->regs, DWC3_DCTL, reg); |