USB: Gadget: Initialize wMaxPacketSize if not already set
authorJassi Brar <jassi.brar@samsung.com>
Fri, 14 Jan 2011 02:55:53 +0000 (11:55 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 19:42:52 +0000 (11:42 -0800)
commit553fbcde3481c98a076c9744a59ad08dbc61c099
treef41887180fc77353c29eeca95bb4b79b9a153e2f
parent7af75af2424c3a866041e7981d91f01f93235533
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 <jassi.brar@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/epautoconf.c