From: =?utf-8?Q?Bj=C3=B8rn_Mork?= Subject: Re: [PATCH] USBNET: fix handling padding packet Date: Thu, 19 Sep 2013 09:18:08 +0200 Message-ID: <87wqmd46vj.fsf@nemi.mork.no> References: <1379409002-7698-1-git-send-email-ming.lei@canonical.com> <878uyu6xjm.fsf@nemi.mork.no> <87zjra5dpx.fsf@nemi.mork.no> <1379523984.2430.3.camel@linux-fkkt.site> <1379573843.8608.7.camel@linux-fkkt.site> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ming Lei , "David S. Miller" , Greg Kroah-Hartman , Network Development , linux-usb To: Oliver Neukum Return-path: In-Reply-To: <1379573843.8608.7.camel-B2T3B9s34ElbnMAlSieJcQ@public.gmane.org> (Oliver Neukum's message of "Thu, 19 Sep 2013 08:57:23 +0200") Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Oliver Neukum writes: > On Wed, 2013-09-18 at 20:56 +0200, Bj=C3=B8rn Mork wrote: >> Oliver Neukum wrote: > >> >No, USB 3.0 uses no companion controllers, so you can have devices >> >of any speed connected to it. >> > >>=20 >> Ah, right. I don't own such modern hardware, but I should have known >> this anyway. >>=20 >> This still doesn't change the fact that the driver is brand new for >> brand new devices. I believe we should assume such devices will >> support ZLPs unless we have documentation stating anything else. > > For such devices we might assume it. But how does that matter for > generic code? The code isn't generic yet. Most of it is placed inside the ax88179_178a minidriver. But I do agree that adding this padding support can be seen as one step towards making the code generic. So if you really anticipate this bein= g enabled for e.g. the ECM class driver, then yes, padding must be supported. I would have had less trouble understanding the value if this patch was part of a generalisation series, though... > As any kind of device may be connected to XHCI, the sg > code is relevant for every driver. And I certainly don't want trouble > for older devices' drivers converted to sg. I wonder what the gain of that really is? Yes, I can see the advantage of making the class drivers more effective. But padding is only relevant for the ECM class, isn't it? And are there any ECM class devices where SG support matters? Bj=C3=B8rn -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html