]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: ffs: fix regression when quirk_ep_out_aligned_size flag is set
authorDavid Cohen <david.a.cohen@linux.intel.com>
Mon, 13 Oct 2014 18:15:54 +0000 (11:15 -0700)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Oct 2014 14:55:42 +0000 (09:55 -0500)
commitc0d31b3c3d9a025b8d5a57c35671e60c5f388bf7
tree523ffce944d21868f551f1a03771222f3d971cad
parenta3058a5d82e296daaca07411c3738a9ddd79f302
usb: ffs: fix regression when quirk_ep_out_aligned_size flag is set

The commit '2e4c7553cd usb: gadget: f_fs: add aio support' broke the
quirk implemented to align buffer size to maxpacketsize on out endpoint.
As result, functionfs does not work on Intel platforms using dwc3 driver
(i.e. Bay Trail and Merrifield). This patch fixes the issue.

This code is based on a previous Qiuxu's patch.

Fixes: 2e4c7553cd (usb: gadget: f_fs: add aio support)
Cc: <stable@vger.kernel.org> # v3.16+
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_fs.c