linux/drivers/usb/chipidea
Michael Grzeschik 7f67c38bdc usb: chipidea: udc: fix setup of endpoint maxpacket size
This patch changes the setup of the endpoint maxpacket size. All non control
endpoints are initialized with an undefined ((unsigned short)~0) maxpacket
size. The maxpacket size of Endpoint 0 will be kept at CTRL_PAYLOAD_MAX.

Some gadget drivers check for the maxpacket size before they enable the
endpoint, which leads to a wrong state in these drivers.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-12 10:58:37 -07:00
..
bits.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
ci13xxx_imx.c usb: chipidea: add imx platform driver 2012-07-09 10:01:09 -07:00
ci13xxx_msm.c USB: Chipidea: add unified ci13xxx_{add,remove}_device for platform drivers 2012-07-09 09:53:44 -07:00
ci13xxx_pci.c USB: Chipidea: add unified ci13xxx_{add,remove}_device for platform drivers 2012-07-09 09:53:44 -07:00
ci.h usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
core.c usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
debug.c USB: Chipidea: rename struct ci13xxx variables from udc to ci 2012-07-09 09:52:15 -07:00
debug.h usb: chipidea: split the driver code into units 2012-05-11 16:49:51 -07:00
host.c usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
host.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
Kconfig usb: chipidea: fix and improve dependencies if usb host or gadget support is built as module 2012-08-10 11:46:04 -07:00
Makefile usb: chipidea: add imx platform driver 2012-07-09 10:01:09 -07:00
udc.c usb: chipidea: udc: fix setup of endpoint maxpacket size 2012-09-12 10:58:37 -07:00
udc.h usb: chipidea: use generic map/unmap routines 2012-05-11 16:59:35 -07:00