projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
861e0f5
)
usb: dwc2: fix role switch breakage
author
Paul Zimmerman
<Paul.Zimmerman@synopsys.com>
Tue, 4 Feb 2014 19:42:15 +0000
(11:42 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 4 Feb 2014 20:59:14 +0000
(12:59 -0800)
Commit
beb7e592bc
"staging: dwc2: add check on dwc2_core_reset
return" broke the B -> A role switching on OTG-enabled platforms.
This commit fixes it.
Reported-by: Dinh Nguyen <dinguyen@altera.com>
Tested-by: Dinh Nguyen <dinguyen@altera.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/core.c
b/drivers/usb/dwc2/core.c
index 8565d87f94b4872e6f5fb7cb1d813f8e0b4493bc..1d129884cc39ad71e8fddc34b6dc9715ae679f47 100644
(file)
--- a/
drivers/usb/dwc2/core.c
+++ b/
drivers/usb/dwc2/core.c
@@
-216,7
+216,7
@@
static int dwc2_hs_phy_init(struct dwc2_hsotg *hsotg, bool select_phy)
int retval = 0;
if (!select_phy)
- return
-ENODEV
;
+ return
0
;
usbcfg = readl(hsotg->regs + GUSBCFG);