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:
ccc080c
)
usb: dwc3: core: fix cached revision on our structure
author
Felipe Balbi
<balbi@ti.com>
Wed, 14 Dec 2011 19:59:30 +0000
(21:59 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 14 Dec 2011 19:59:30 +0000
(21:59 +0200)
All our revision macros are defined with the entire
32-bits which we read from GSNPSID register, so we
must cache all 32-bits properly rather than masking
the top 16-bits.
This will fix all revision checks we have on current
driver.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/core.c
b/drivers/usb/dwc3/core.c
index 717ebc9ff941808e2ddd52c93db09cc998456565..600d82348511068b141dc65f7a6e7e7c79037a14 100644
(file)
--- a/
drivers/usb/dwc3/core.c
+++ b/
drivers/usb/dwc3/core.c
@@
-264,7
+264,7
@@
static int __devinit dwc3_core_init(struct dwc3 *dwc)
ret = -ENODEV;
goto err0;
}
- dwc->revision = reg
& DWC3_GSNPSREV_MASK
;
+ dwc->revision = reg;
dwc3_core_soft_reset(dwc);