Commit 12814a3f authored by Grigor Tovmasyan's avatar Grigor Tovmasyan Committed by Felipe Balbi

usb: dwc2: Fix interval type issue

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: default avatarGrigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent ecd29dab
...@@ -217,7 +217,7 @@ struct dwc2_hsotg_ep { ...@@ -217,7 +217,7 @@ struct dwc2_hsotg_ep {
unsigned char dir_in; unsigned char dir_in;
unsigned char index; unsigned char index;
unsigned char mc; unsigned char mc;
unsigned char interval; u16 interval;
unsigned int halted:1; unsigned int halted:1;
unsigned int periodic:1; unsigned int periodic:1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment