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,
};

Jean-Philippe François
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to