Hi Jean-Philippe,
On Friday 04 February 2011 11:58:05 jean-philippe francois wrote:
> Hi,
>
> I have backported the UVC gadget patch by laurent pinchart on a custom
> DM365 board.
> It fails to allocate the required endpoints :
>
> ep = usb_ep_autoconfig(cdev->gadget, &uvc_streaming_ep);
> if (!ep) {
> INFO(cdev, "Unable to allocate streaming EP\n");
> goto error;
> }
>
> I can see the message "Unable to allocate streaming EP" in the log.
> How can I debug / fix this ?
>
> The mass storage gadget is working fine.
>
> Here is the failing endpoint descriptor :
>
> static struct usb_endpoint_descriptor uvc_streaming_ep = {
> .bLength = USB_DT_ENDPOINT_SIZE,
> .bDescriptorType = USB_DT_ENDPOINT,
> .bEndpointAddress = USB_DIR_IN,
> .bmAttributes = USB_ENDPOINT_XFER_ISOC,
> .wMaxPacketSize = cpu_to_le16(1024),
> .bInterval = 1,
> };
The MUSB FIFO configurations don't support 1024 bytes endpoint buffers out of
the box. You can modify that in drivers/usb/musb/musb_core.c (mode_*_cfg).
Remember that the DM365 MUSB FIFO RAM is only 4kB long.
--
Regards,
Laurent Pinchart
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source