linux/drivers/usb/renesas_usbhs
Robert Baldyga e117e742d3 usb: gadget: add "maxpacket_limit" field to struct usb_ep
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@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-12-17 13:17:41 -06:00
..
common.c usb: renesas_usbhs: use platform_{get,set}_drvdata() 2013-08-27 21:35:23 -07:00
common.h usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support 2012-10-16 13:09:50 +03:00
fifo.c usb: renesas_usbhs: fifo: request DMAEngine once 2013-12-12 13:43:34 -06:00
fifo.h usb: renesas: remove unused DMA_ADDR_INVALID 2013-03-18 11:18:13 +02:00
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
Makefile usb: gadget: renesas_usbhs: fixup driver compile style 2011-10-13 20:41:54 +03:00
mod.c usb: gadget: patches for v3.8 2012-11-11 17:31:53 -08:00
mod.h renesas_usbhs: cleanup quoted includes 2012-06-05 10:15:25 +02:00
mod_gadget.c usb: gadget: add "maxpacket_limit" field to struct usb_ep 2013-12-17 13:17:41 -06:00
mod_host.c usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro 2013-07-29 13:58:12 +03:00
pipe.c usb: renesas_usbhs: use transfer counter if IN direction bulk pipe 2012-11-08 15:46:06 +02:00
pipe.h usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro 2013-07-29 13:58:12 +03:00