diff options
author | Grigor Tovmasyan <Grigor.Tovmasyan@synopsys.com> | 2018-02-06 16:07:38 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-13 09:47:45 +0100 |
commit | 12814a3f8f9b247531d7863170cc82b3fe4218fd (patch) | |
tree | d367192a3f53e688917b1340dc06a3cd931ba46b /drivers/usb/dwc2 | |
parent | usb: dwc2: pci: Handle error cleanup in probe (diff) | |
download | linux-12814a3f8f9b247531d7863170cc82b3fe4218fd.tar.xz 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.h | 2 |
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; |