On Thu, Dec 12, 2013 at 09:51:24AM +0100, Robert Baldyga wrote: > This patch adds "maxpacket_limit" to struct usb_ep. This field contains > maximum value of maxpacket supported by driver, and is set in driver probe. > This value should be used by autoconfig() function, because value of field > "maxpacket" is set to value from endpoint descriptor when endpoint becomes > enabled. So when autoconfig() function will be called again for this endpoint, > "maxpacket" value will contain wMaxPacketSize from descriptior instead of > maximum packet size for this endpoint. > > For this reason this patch adds new field "maxpacket_limit" which contains > value of maximum packet size (which defines maximum endpoint capabilities). > This value is used in ep_matches() function used by autoconfig(). > > Value of "maxpacket_limit" should be set in UDC driver probe function, using > usb_ep_set_maxpacket_limit() function, defined in gadget.h. This function > set choosen value to both "maxpacket_limit" and "maxpacket" fields. > > This patch modifies UDC drivers by adding support for maxpacket_limit. > > Signed-off-by: Robert Baldyga <r.baldyga@xxxxxxxxxxx> > Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> you're still missing drivers/usb/dwc3, drivers/usb/musb, drivers/usb/renesas_usbhs, drivers/usb/gadget/mv_u3d_core, drivers/usb/gadget/fsl_qe_udc (maybe), drivers/usb/gadget/net2272.c, drivers/usb/gadget/net2280.c and drivers/usb/chipidea -- balbi
Attachment:
signature.asc
Description: Digital signature