usb: gadget: f_fs: preserve wMaxPacketSize across usb_ep_autoconfig() call
authorAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Thu, 31 Jan 2019 14:53:40 +0000 (15:53 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 7 Feb 2019 11:14:51 +0000 (13:14 +0200)
commitbdcc03cef0fd8abc6eaeec6ac47e54ae8f8c625f
tree56fae0b1ac05a661572a90da782fe6a56ff576e4
parentdffe2d7fc45017d7afdb6fc226ff34a537cc285c
usb: gadget: f_fs: preserve wMaxPacketSize across usb_ep_autoconfig() call

usb_ep_autoconfig() treats the passed descriptor as if it were an fs
descriptor. In particular, for bulk endpoints, it clips wMaxPacketSize
to 64. This patch preserves the original value.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_fs.c