From: Gregory Herrero Date: Fri, 9 Jan 2015 12:39:07 +0000 (+0100) Subject: usb: dwc2: gadget: fix pullup handling X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6d13673e6bc5b666913e92ca59518a449da3b4a9;p=linux-beck.git usb: dwc2: gadget: fix pullup handling Gadget must be informed about disconnection when pullup is removed. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Gregory Herrero Signed-off-by: Felipe Balbi --- 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); }