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:
f8b5e71
)
usb: dwc_otg: fix bug in device_init routine
author
lyz
<lyz@rock-chips.com>
Mon, 16 Mar 2015 09:11:48 +0000
(17:11 +0800)
committer
lyz
<lyz@rock-chips.com>
Mon, 16 Mar 2015 09:15:28 +0000
(17:15 +0800)
1.wait epenable bit timeout decrease from 10s to 1s
2.fix bug, without 'j++' this loop never break if there is some
problem with ep state
drivers/usb/dwc_otg_310/dwc_otg_cil.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg_310/dwc_otg_cil.c
b/drivers/usb/dwc_otg_310/dwc_otg_cil.c
index fc347d04615ba00b0e762bd6ff754625b02ac506..dae6550634c1c2f1c52ccb967dcebf537e141b11 100755
(executable)
--- a/
drivers/usb/dwc_otg_310/dwc_otg_cil.c
+++ b/
drivers/usb/dwc_otg_310/dwc_otg_cil.c
@@
-2262,9
+2262,9
@@
void dwc_otg_core_dev_init(dwc_otg_core_if_t *core_if)
DWC_READ_REG32(&core_if->
dev_if->out_ep_regs[i]->
doepint);
- if (j
== 10
0000) {
+ if (j
++ >= 1
0000) {
DWC_ERROR
- ("EPDIS was not set during 1
0
s\n");
+ ("EPDIS was not set during 1s\n");
break;
}
} while (!doepint.b.epdisabled);