forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
7fcbc95c1f
commit
6d13673e6b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user