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)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Dec 2013 04:44:07 +0000 (22:44 -0600)
commit219580e64f035bb9018dbb08d340f90b0ac50f8c
tree01861bc2d3b1ab44d02fede789b041837f6ba0c5
parent7fa6803483ed215f9c73780194d49719a060bf1c
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