usb: gadget: f_fs: Align epout buf size to wMaxPacketSize
usb: gadget: f_fs: Align epout buf size to wMaxPacketSize

DWC3 controller requires epout to have its OUT buffer size rounded up
to MaxPacketSize. Since this can vary between 512 and 1024 depending
on whether it is connected in high- or super-speed, set it based on
the EP descriptor.

This bug came up in high-speed connections when a bulk out transfer
of a multiple of 512 bytes is sent, but the transactions were
incorrectly queued in 1024 byte increments. This resulted in the
terminating zero-length packet sent by the host to not get handled by
the controller correctly, causing userspace read() to block indefinitely.

Change-Id: If89b9b29f20627bde9c482268ff12c8182c262c1
Signed-off-by: Jack Pham <cbd79eb9617449d4bb49d0087b0eb70c6cf062b0@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas