From: Felipe Balbi <balbi-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Dmitry Osipenko <digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Thierry Reding
<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Greg Kroah-Hartman
<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
Peter Chen <Peter.Chen-3arQi8VN3Tc@public.gmane.org>,
Jonathan Hunter
<jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: "Marc Dietrich" <marvin24-Mmb7MZpHnFY@public.gmane.org>,
"Nicolas Chauvet"
<kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Michał Mirosław"
<mirq-linux-CoA6ZxLDdyEEUmgCuDUIdw@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v5 1/8] usb: gadget: f_ecm/f_eem/f_rndis: Setup quirk_avoids_skb_reserve
Date: Tue, 15 Aug 2017 12:49:55 +0300 [thread overview]
Message-ID: <87k2256tz0.fsf@linux.intel.com> (raw)
In-Reply-To: <4c7b3a3b23b44f4115de1745c65d719a3f70c4db.1502280695.git.digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]
Hi,
Dmitry Osipenko <digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> This quirk is required to make USB Ethernet gadget working with HW that
> can't cope with unaligned DMA. For some reason only f_ncm handles that
> quirk, let's handle it in the rest of the network models. All models have
> been tested with a ChipIdea UDC driver on NVIDIA Tegra20 SoC that require
> DMA to be aligned.
>
> Signed-off-by: Dmitry Osipenko <digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/usb/gadget/function/f_ecm.c | 7 +++++++
> drivers/usb/gadget/function/f_eem.c | 5 +++++
> drivers/usb/gadget/function/f_rndis.c | 4 ++++
> 3 files changed, 16 insertions(+)
>
> diff --git a/drivers/usb/gadget/function/f_ecm.c b/drivers/usb/gadget/function/f_ecm.c
> index 4c488d15b6f6..1d198055fd74 100644
> --- a/drivers/usb/gadget/function/f_ecm.c
> +++ b/drivers/usb/gadget/function/f_ecm.c
> @@ -584,6 +584,13 @@ static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
> */
> ecm->port.is_zlp_ok =
> gadget_is_zlp_supported(cdev->gadget);
> +
> + /* Setup DMA alignment workaround for UDC's that
> + * need it.
> + */
> + ecm->port.no_skb_reserve =
> + gadget_avoids_skb_reserve(cdev->gadget);
looks like the quirk should be moved to u_ether.c instead.
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2017-08-15 9:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-09 12:19 [PATCH v5 0/8] Support UDC on Tegra 20/30/114/124 Dmitry Osipenko
[not found] ` <cover.1502280694.git.digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-09 12:19 ` [PATCH v5 1/8] usb: gadget: f_ecm/f_eem/f_rndis: Setup quirk_avoids_skb_reserve Dmitry Osipenko
[not found] ` <4c7b3a3b23b44f4115de1745c65d719a3f70c4db.1502280695.git.digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-15 9:49 ` Felipe Balbi [this message]
[not found] ` <87k2256tz0.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-08-15 15:45 ` Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 2/8] usb: chipidea: udc: Support SKB alignment quirk Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 3/8] usb: chipidea: Add support for Tegra20/30/114/124 Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 4/8] ARM: defconfig: tegra: Enable ChipIdea UDC driver Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 5/8] ARM: tegra: Enable UDC on Beaver Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 6/8] ARM: tegra: Enable UDC on Dalmore Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 7/8] ARM: tegra: Enable UDC on Jetson TK1 Dmitry Osipenko
2017-08-09 12:19 ` [PATCH v5 8/8] ARM: tegra: Enable UDC on AC100 Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2256tz0.fsf@linux.intel.com \
--to=balbi-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=Peter.Chen-3arQi8VN3Tc@public.gmane.org \
--cc=digetx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=marvin24-Mmb7MZpHnFY@public.gmane.org \
--cc=mirq-linux-CoA6ZxLDdyEEUmgCuDUIdw@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
--cc=thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.