usb: dwc2: Fix interval type issue
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>
Tue, 6 Feb 2018 15:07:38 +0000 (19:07 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:13:03 +0000 (16:13 +0200)
commitfba46ae2cd7a5117299c435d71adcaf30acd8b01
tree4569276d7266396573ce25a41589f84ab1502664
parent48701a8f4adbaa04a046edb68871b76f809fd57b
usb: dwc2: Fix interval type issue

[ Upstream commit 12814a3f8f9b247531d7863170cc82b3fe4218fd ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core.h