Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d13673e authored by Gregory Herrero's avatar Gregory Herrero Committed by Felipe Balbi
Browse files

usb: dwc2: gadget: fix pullup handling



Gadget must be informed about disconnection when pullup is
removed.

Tested-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Acked-by: default avatarPaul Zimmerman <paulz@synopsys.com>
Signed-off-by: default avatarGregory Herrero <gregory.herrero@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7fcbc95c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}