From: David Cohen Date: Mon, 9 Dec 2013 23:55:35 +0000 (-0800) Subject: usb: gadget: add quirk_ep_out_aligned_size field to struct usb_gadget X-Git-Tag: v3.14-rc1~148^2~90^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2d2bbade59ab2067f326d6dbc2628bee227fd5;p=pandora-kernel.git usb: gadget: add quirk_ep_out_aligned_size field to struct usb_gadget Due to USB controllers may have different restrictions, usb gadget layer needs to provide a generic way to inform gadget functions to complain with non-standard requirements. This patch adds 'quirk_ep_out_aligned_size' field to struct usb_gadget to inform when controller's epout requires buffer size to be aligned to MaxPacketSize. A helper is also provided to align buffer size when necessary. Cc: Alan Stern Acked-by: Michal Nazarewicz Signed-off-by: David Cohen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed