Skip to content

Commit 553f62e

Browse files
Grigor TovmasyanZhengShunQian
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 e9477dd commit 553f62e

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
@@ -212,7 +212,7 @@ struct dwc2_hsotg_ep {
212212
unsigned char dir_in;
213213
unsigned char index;
214214
unsigned char mc;
215-
unsigned char interval;
215+
u16 interval;
216216

217217
unsigned int halted:1;
218218
unsigned int periodic:1;

0 commit comments

Comments
 (0)