From: Michael Grzeschik Date: Wed, 12 Sep 2012 11:58:00 +0000 (+0300) Subject: usb: chipidea: udc: fix setup of endpoint maxpacket size X-Git-Tag: v3.6-rc6~19^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f67c38bdcb6d8bce02e10521fbf1618b586319f;p=pandora-kernel.git 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 Signed-off-by: Michael Grzeschik Acked-by: Felipe Balbi Signed-off-by: Marc Kleine-Budde Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed