On 2/6/2018 7:07 PM, Grigor Tovmasyan wrote:
> 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 <tovma...@synopsys.com>
> ---
>   drivers/usb/dwc2/core.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
> index 0f0c21cf0192..51c3d5170b3b 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;
> 

Acked-by: Minas Harutyunyan <hmi...@synopsys.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to