From: Gregory Herrero Date: Fri, 9 Jan 2015 12:39:07 +0000 (+0100) Subject: usb: dwc2: gadget: fix pullup handling X-Git-Tag: v4.14-rc1~5941^2^2~116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d13673e6bc5b666913e92ca59518a449da3b4a9;p=platform%2Fkernel%2Flinux-rpi.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 a1fd86f..2719d48 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); }