summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>2018-02-06 19:07:38 +0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-13 10:47:45 +0200
commit12814a3f8f9b247531d7863170cc82b3fe4218fd (patch)
treed367192a3f53e688917b1340dc06a3cd931ba46b /drivers/usb/dwc2
parentecd29dabb2ba2e4a29339bf55129fd1058107206 (diff)
downloadlinux-12814a3f8f9b247531d7863170cc82b3fe4218fd.tar.gz
linux-12814a3f8f9b247531d7863170cc82b3fe4218fd.tar.bz2
linux-12814a3f8f9b247531d7863170cc82b3fe4218fd.zip
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: Grigor Tovmasyan <tovmasya@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r--drivers/usb/dwc2/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index 939ee1e538d0..db5c02bd4420 100644
--- 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;
- unsigned char interval;
+ u16 interval;
unsigned int halted:1;
unsigned int periodic:1;