usb: f_fs: check quirk to pad epout buf size when not aligned to maxpacketsize
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 9 Dec 2013 23:55:37 +0000 (15:55 -0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:25 +0000 (11:46 +0900)
commitf71ab9db98d0fdc700ef84013a1bb889d920622e
tree1c3115ffc05c6997631668749a350903527525c0
parentcb6d96294dcdfbebac2c4e7e4d6f2cd884f60364
usb: f_fs: check quirk to pad epout buf size when not aligned to maxpacketsize

Check gadget.quirk_ep_out_aligned_size to decide if buffer size requires
to be aligned to maxpacketsize of an out endpoint.  ffs_epfile_io() needs
to pad epout buffer to match above condition if quirk is found.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_fs.c