usb: chipidea: udc: Support SKB alignment quirk
authorDmitry Osipenko <digetx@gmail.com>
Wed, 16 Aug 2017 10:32:39 +0000 (13:32 +0300)
committerPeter Chen <peter.chen@nxp.com>
Thu, 24 Aug 2017 09:40:42 +0000 (17:40 +0800)
commit581821ae7f7e2c4547945c65f1bcd357f5915aa5
tree0d41d8f23c0563c15b8374100ec85895afe743c4
parent7c3a8b81503ce8e6ab22341f0267d30085d17194
usb: chipidea: udc: Support SKB alignment quirk

NVIDIA Tegra20 UDC can't cope with unaligned DMA and require a USB gadget
quirk that avoids SKB buffer alignment to be set in order to make Ethernet
Gadget working. Later Tegra generations do not require that quirk. Let's
add a new platform data flag that allows to enable USB gadget quirk for
platforms that require it.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c
include/linux/usb/chipidea.h