usb: gadget: f_ncm/u_ether: Move 'SKB reserve' quirk setup to u_ether
authorDmitry Osipenko <digetx@gmail.com>
Wed, 16 Aug 2017 10:32:38 +0000 (13:32 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Aug 2017 09:29:10 +0000 (12:29 +0300)
commit0852659ef071ccd84e85e37195e7c2f3e7c64d1f
treefade377ee70afbcc784f51f37a9470830d2a15e8
parentdaa35bd95634a2a2d72d1049c93576a02711cb1a
usb: gadget: f_ncm/u_ether: Move 'SKB reserve' quirk setup to u_ether

That quirk is required to make USB Ethernet gadget working on HW that
can't cope with unaligned DMA. For some reason only f_ncm sets up that
quirk, let's setup it directly in u_ether so other network models would
have that quirk applied as well. All network models have been tested with
ChipIdea UDC driver on NVIDIA Tegra20 SoC that require DMA to be aligned.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_ncm.c
drivers/usb/gadget/function/u_ether.c
drivers/usb/gadget/function/u_ether.h