Re: [PATCH] usb: chipidea: udc: configure iso endpoints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 02, 2013 at 06:10:54PM +0200, Michael Grzeschik wrote:
>  	/* first nuke then test link, e.g. previous status has not sent */
>  	if (!list_empty(&mReq->queue)) {
>  		dev_err(mEp->ci->dev, "request already in queue\n");
> @@ -1071,6 +1077,9 @@ static int ep_enable(struct usb_ep *ep,
>  
>  	if (mEp->type == USB_ENDPOINT_XFER_CONTROL)
>  		cap |= QH_IOS;
> +	else if (mEp->type == USB_ENDPOINT_XFER_ISOC)
> +		cap |= QH_ISO_TRANS(mEp->ep.maxpacket) << __ffs(QH_MULT);
> +
Michael, as I said before, the mult bit is calculated by total bytes
and max packet size, and you need to add it at QH config before prime.
The fsl_udc_core also did wrong for this.

-- 

Best Regards,
Peter Chen

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux