On Wed, Sep 28, 2016 at 04:05:24PM +0300, Felipe Balbi wrote:
> We have introduced a helper to calculate multiplier
> value from wMaxPacketSize. Start using it.
> 
> Cc: Peter Chen <peter.c...@nxp.com>
> Cc: <linux-usb@vger.kernel.org>
> Signed-off-by: Felipe Balbi <felipe.ba...@linux.intel.com>
> ---
>  drivers/usb/chipidea/udc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
> index 661f43fe0f9e..2b95ca887ca4 100644
> --- a/drivers/usb/chipidea/udc.c
> +++ b/drivers/usb/chipidea/udc.c
> @@ -1254,7 +1254,7 @@ static int ep_enable(struct usb_ep *ep,
>       hwep->type = usb_endpoint_type(desc);
>  
>       hwep->ep.maxpacket = usb_endpoint_maxp(desc) & 0x07ff;
> -     hwep->ep.mult = QH_ISO_MULT(usb_endpoint_maxp(desc));

The original code is 0 based,

> +     hwep->ep.mult = usb_endpoint_maxp_mult(desc);

now the new code makes it 1 based.

Regards,
-Bin.

>  
>       if (hwep->type == USB_ENDPOINT_XFER_CONTROL)
>               cap |= QH_IOS;
> -- 
> 2.10.0.440.g21f862b
> 
> --
> 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
--
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