From: Jassi Brar Date: Fri, 14 Jan 2011 02:55:53 +0000 (+0900) Subject: USB: Gadget: Initialize wMaxPacketSize if not already set X-Git-Tag: v2.6.39-rc1~472^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553fbcde3481c98a076c9744a59ad08dbc61c099;p=pandora-kernel.git USB: Gadget: Initialize wMaxPacketSize if not already set Currently, for ISO and INT, a protocol driver must chose the value for wMaxPacketSize arbitrarily. The value may be too low, resulting in lesser than efficient operation or high enough to not work with all UDC drivers. Take un-initialized wMaxPacketSize as a hint to provide maximum possible packetsize for the selected endpoint. The protocol may then choose a value not bigger than that. Signed-off-by: Jassi Brar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed