diff options
author | Gregory Herrero <gregory.herrero@intel.com> | 2015-01-09 13:39:07 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 15:34:45 -0600 |
commit | 6d13673e6bc5b666913e92ca59518a449da3b4a9 (patch) | |
tree | a4abeb50bbb3658e0e05dc1e172507f57baaf20e /drivers/usb/dwc2 | |
parent | 7fcbc95c1fa4d6e3f4645f9552d358f07ab93ad1 (diff) | |
download | linux-6d13673e6bc5b666913e92ca59518a449da3b4a9.tar.bz2 |
usb: dwc2: gadget: fix pullup handling
Gadget must be informed about disconnection when pullup is
removed.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index a1fd86febe98..2719d48c73df 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3018,6 +3018,7 @@ static int s3c_hsotg_pullup(struct usb_gadget *gadget, int is_on) s3c_hsotg_core_connect(hsotg); } else { s3c_hsotg_core_disconnect(hsotg); + s3c_hsotg_disconnect(hsotg); hsotg->enabled = 0; clk_disable(hsotg->clk); } |