]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4549057fabdb7d398b2c2739a783d508fa9841f9
treefade377ee70afbcc784f51f37a9470830d2a15e8
parent345ce302e438fa70c63dcfd3bc57ba910b682dc4
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