projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fcbc95
)
usb: dwc2: gadget: fix pullup handling
author
Gregory Herrero
<gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:39:07 +0000
(13:39 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 12 Jan 2015 21:34:45 +0000
(15:34 -0600)
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>
drivers/usb/dwc2/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/gadget.c
b/drivers/usb/dwc2/gadget.c
index a1fd86febe98e67147b1edd8a317064598da782c..2719d48c73df798bb9194779f687d0574013d95f 100644
(file)
--- 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);
}