mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Peter Chen <[email protected]> Signed-off-by: Peter Chen <[email protected]>
This commit is contained in:
parent
7c3a8b8150
commit
581821ae7f
2 changed files with 4 additions and 0 deletions
|
|
@ -1896,6 +1896,9 @@ static int udc_start(struct ci_hdrc *ci)
|
|||
ci->gadget.name = ci->platdata->name;
|
||||
ci->gadget.otg_caps = otg_caps;
|
||||
|
||||
if (ci->platdata->flags & CI_HDRC_REQUIRES_ALIGNED_DMA)
|
||||
ci->gadget.quirk_avoids_skb_reserve = 1;
|
||||
|
||||
if (ci->is_otg && (otg_caps->hnp_support || otg_caps->srp_support ||
|
||||
otg_caps->adp_support))
|
||||
ci->gadget.is_otg = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue