Commit fba46ae2 authored by Grigor Tovmasyan's avatar Grigor Tovmasyan Committed by Greg Kroah-Hartman

usb: dwc2: Fix interval type issue

[ Upstream commit 12814a3f ]

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>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48701a8f
...@@ -209,7 +209,7 @@ struct dwc2_hsotg_ep { ...@@ -209,7 +209,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