summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorGregory Herrero <gregory.herrero@intel.com>2015-01-09 13:39:07 +0100
committerFelipe Balbi <balbi@ti.com>2015-01-12 22:34:45 +0100
commit6d13673e6bc5b666913e92ca59518a449da3b4a9 (patch)
treea4abeb50bbb3658e0e05dc1e172507f57baaf20e /drivers/usb/dwc2
parentusb: dwc2: gadget: reset fifo_map when initializing fifos (diff)
downloadlinux-6d13673e6bc5b666913e92ca59518a449da3b4a9.tar.xz
linux-6d13673e6bc5b666913e92ca59518a449da3b4a9.zip
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.c1
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);
}