Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2747425pxb; Mon, 31 Jan 2022 03:31:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6SbQ+WWAwF3qp20HUjCL9yX6BMDoJBkSb/Hi+pzxNuA5x8+SHwIsc2K6IUQ4cyvSuDm7L X-Received: by 2002:a63:1d0:: with SMTP id 199mr10330519pgb.469.1643628664562; Mon, 31 Jan 2022 03:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643628664; cv=none; d=google.com; s=arc-20160816; b=JKMptuotZKbu2zEmr7+JVtnEb08HKEqiErkIm6UK3oeebX4W/kpKmaPZnyZH/zUk7U 3BpSdaSjU2vs70UXIyhorf61eqG9+CVORZt2ux5DIqOVMa0DS2nh0UYUEtXRtonhowss SVohuvqHt3qhw0bo/+ZQW6zBrVoX/fji/uH8BlOEkqD7QNarnUN6NvVs380FZhyM8YzZ fjCyaC4gNRzrIKdvIpHBJLOkVcooRYAS3L5ml47P3EwINYVm55kgOENylWLfbUKRGZoo Lh/Ur1ZQ6LX4Z8UJIfo0euwA6xnGL3b1YaIK5oCMwE4TCX5kvqPwiGiTrVY9pmaKdAsK 26Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vie3/PM7S4hVbkPSRtFZY3hP76QHnHKvCYyA6kNV6dY=; b=jz2Qgp+2GcpEU+6lZoVxqFIErvjmqK3Vi2GHW0tasXQxJeWThc7e6vhwnfXOVlB0bG LkmGvXHGWCqYOysI6CrgVUPCF7vMkyNDms4C4aCDlbDRccScK4OSlkm7cOWgfPMfCNQR 8mnpdrQYyxUMb3tgNk3nKq7KCt1jr0e1chWBl+JtMlmHswVY7FI3m/Nl/eGEKfFZM6sA SPCvvVVyr7wsTA9NW2SBeUCDT7rrHbyRv+XWCkzvcRFfwOfcYceSyfV/tKYM4KnFNYUf mITTx/IacXHCW64Ak2MAv7gZCF4iASpog6+lC4flf9Yc4q69RJyg3klBkLWd47Ym5CJC CabA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WIuD13vx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s84si13928712pgs.644.2022.01.31.03.30.52; Mon, 31 Jan 2022 03:31:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WIuD13vx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350424AbiA1SGm (ORCPT + 99 others); Fri, 28 Jan 2022 13:06:42 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:60702 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349942AbiA1SGj (ORCPT ); Fri, 28 Jan 2022 13:06:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=vie3/PM7S4hVbkPSRtFZY3hP76QHnHKvCYyA6kNV6dY=; b=WIuD13vxJKoUJ4eVgvTbTJ6ut+ oAA80qW/+ZPzm03ymjDkmcDM3VyXhXp1Mosqldq2SObNh/kpPt4ESYvjzNU+6j831GaYkNXE1YTCo 3TPDnSv9Aei2ejqrcrGbrjfoad4D3cRAjRgABBSRWBXLo4khZX+QSU6broixrELOgGVY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nDVdn-003D2u-VR; Fri, 28 Jan 2022 19:06:31 +0100 Date: Fri, 28 Jan 2022 19:06:31 +0100 From: Andrew Lunn To: Henning Schild Cc: Aaron Ma , Mario.Limonciello@amd.com, kuba@kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, davem@davemloft.net, hayeswang@realtek.com, tiwai@suse.de Subject: Re: [PATCH v3] net: usb: r8152: Add MAC passthrough support for RTL8153BL Message-ID: References: <20220127100109.12979-1-aaron.ma@canonical.com> <20220128043207.14599-1-aaron.ma@canonical.com> <20220128092103.1fa2a661@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128092103.1fa2a661@md1za8fc.ad001.siemens.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 09:21:03AM +0100, Henning Schild wrote: > I am still very much against any patches in that direction. The feature > as the vendors envision it does not seem to be really understood or > even explained. > Just narrowing down the device matching caters for vendor lock-in and > confusion when that pass through is happening and when not. And seems > to lead to unmaintainable spaghetti-code. > People that use this very dock today will see an unexpected mac-change > once they update to a kernel with this patch applied. I've not yet been convinced by replies that the proposed code really does only match the given dock, and not random USB dongles. To be convinced i would probably like to see code which positively identifies the dock, and that the USB device is on the correct port of the USB hub within the dock. I doubt you can actually do that in a sane way inside an Ethernet driver. As you say, it will likely lead to unmaintainable spaghetti-code. I also don't really think the vendor would be keen on adding code which they know will get reverted as soon as it is shown to cause a regression. So i would prefer to NACK this, and push it to udev rules where you have a complete picture of the hardware and really can identify with 100% certainty it really is the docks NIC. Andrew