Skip to content

Commit 18f31bd

Browse files
Grigor Tovmasyangregkh
authored andcommitted
usb: dwc2: Fix interval type issue
[ Upstream commit 12814a3 ] 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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b066c9b commit 18f31bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc2/core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct dwc2_hsotg_ep {
187187
unsigned char dir_in;
188188
unsigned char index;
189189
unsigned char mc;
190-
unsigned char interval;
190+
u16 interval;
191191

192192
unsigned int halted:1;
193193
unsigned int periodic:1;

0 commit comments

Comments
 (0)