projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecd29da
)
usb: dwc2: Fix interval type issue
author
Grigor Tovmasyan
<Grigor.Tovmasyan@synopsys.com>
Tue, 6 Feb 2018 15:07:38 +0000
(19:07 +0400)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:45 +0000
(10:47 +0200)
The maximum value that unsigned char can hold is 255, meanwhile
the maximum value of interval is 2^(bIntervalMax-1)=2^15.
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/core.h
b/drivers/usb/dwc2/core.h
index
939ee1e
..
db5c02b
100644
(file)
--- a/
drivers/usb/dwc2/core.h
+++ b/
drivers/usb/dwc2/core.h
@@
-217,7
+217,7
@@
struct dwc2_hsotg_ep {
unsigned char dir_in;
unsigned char index;
unsigned char mc;
- u
nsigned char
interval;
+ u
16
interval;
unsigned int halted:1;
unsigned int periodic:1;