On Thu, 7 Oct 2010, tlinder wrote:
quoted text > Change ep_choose() and usb_ep_enable() prototypes to use endpoint
> descriptor from usb_ep. This optimization prevents the FDs from handling
> the endpoint chosen descriptor.
> This optimization is not full though. To fully exploit this change one
> needs to update all the UDCs as well since in the current implementation
> each of them saves the endpoint descriptor in it's internal (and extended)
> endpoint structure.
> This patch is a preparation for adding SuperSpeed support to the gadget
> framework.
>
> Signed-off-by: Tatyana Linder <tlinder@codeaurora.org>
...
quoted text > diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
> index d3ef42d..5e5198d 100644
> --- a/include/linux/usb/gadget.h
> +++ b/include/linux/usb/gadget.h
> @@ -133,18 +133,25 @@ struct usb_ep_ops {
> * the endpoint descriptor used to configure the endpoint.
> * @driver_data:for use by the gadget driver. all other fields are
> * read-only to gadget drivers.
> + * @bEndpointAddress: used to identify ep when finding descriptor that matches
> + * connection speed
> + * @desc:endpoint descriptor. this pointer set before endpoint is enabled and
> + * remains valid until the endpoint is disabled; the data byte order
> + * is little-endian (usb-standard).
The kerneldoc for @driver_data states that @bEndpointAddress and @desc
are read-only for gadget drivers. This contradicts the changes this
patch makes to those drivers.
Alan Stern
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
help , code.perfect , (Fri May 28, 7:48 pm)
VERY URGENT , BARR ALBERTHO RAHIM , (Sun Sep 26, 4:14 pm)
Re: [RFC/PATCH v2 1/3] Add usb_endpoint_descriptor to be p ... , Alan Stern , (Thu Oct 7, 8:39 am)