Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3421806ybf; Tue, 3 Mar 2020 05:48:35 -0800 (PST) X-Google-Smtp-Source: ADFU+vuTQYwT0xEeP6n9TtVPZ5+xUrNgz2IEicPD3mJ3hsZPfR7CTeuJB+0t2TuqyK2OJbeCTMr9 X-Received: by 2002:aca:75c1:: with SMTP id q184mr2468729oic.35.1583243315630; Tue, 03 Mar 2020 05:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583243315; cv=none; d=google.com; s=arc-20160816; b=CHj1nPGCGh4nvDZTwhm+QghDdOFELeYXIFomT7e72zgePE4A8BX5oe1p1uwqy8k2pU 27LLgn1V1LV1U35FLMnwBfdN7do+97X8trJUwPtGwxBJjhs/l3s2rLYQ5kjWOiQASZG6 CA6TqnX6Ccw0CJbhSsitEfjyFKZoIDoNgMXV1t8/+bCwxFaknqJcvhBWHGryGjZSS0KS rxtwD4YrhVKccBnfTLR3DdSfj8RljpTc8gRxnc7CKeTJHIB9+wupnxLltX1B/NcwMJkU O9XcFPGM2JzdEBTf7B4p5NJdONOuprU2fSdZMoR/FjBty6dqN3GkA5f4lJYXZ2bTi1qY QFOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0yup3mARE7euXRUrinjIYjaiwDrqny/kYWdlvrncAsM=; b=LGWK+p/RS0wkMdNIfbq/s9lKCjdV24jhgRF4pDw+1XhT0sTtSVSdwoD3wnToZGe4+n rxBBFo/GdPvvWxiK2QqGJG57np3YOEo8awPu1DVFvbQoOKTkMIlnYeMvfOfJHpmK7fTb niUCqAKHc6tZSytthRmTy4+blJKWMyXlk4QvV/VbX6qSt8zKpR73GS55+lJaQx0miaFP xAe+wxVIVzisXrGQIqvhH3vgZt57S5PggSPrcxQ4DVBTAcAjFQfpb/qvOdgWOFR2MDOh joAFH1NkB53SNf9TPyY/voT41JulpDaC+ALlgS8Cw3QhGb8F2gdVswbf3DXQL52YLsCv U2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Ix1npxEP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f137si1217435oig.87.2020.03.03.05.48.23; Tue, 03 Mar 2020 05:48:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Ix1npxEP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728100AbgCCNpJ (ORCPT + 99 others); Tue, 3 Mar 2020 08:45:09 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:35810 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727576AbgCCNpI (ORCPT ); Tue, 3 Mar 2020 08:45:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0yup3mARE7euXRUrinjIYjaiwDrqny/kYWdlvrncAsM=; b=Ix1npxEPg/BN0E66WionUlpl8 Q18ezX5tE6P7m/7P/HHPmMZvqgsmXup3cAB30aHQToKLFr/i68zA0CT2w7bR6/O84vRlrK5Q1xHSc 0u6DH/xvf+nwKahGZe2l5TkLEs5RBQMhMEnte6XylwWjCg4LjhLShgD0ChfGliYGlDzWjCEKm2xVV OPXethEeNJaKdpWvTSiI4vhvxU1ZEGskg4JMDxWuA7jO1+yT0rU2IK1f+HLmHYQRG4Q5JrEyLOCMI Ycg0OqQ2xFq4QhBeS3LLBpRp+dape+V88KmRLCmfFhL0CeLmEnZy7HCV/55icBNaSvrEmXf4So7lg LX+baEtPg==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:48182) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1j97qz-0008H7-2z; Tue, 03 Mar 2020 13:44:57 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1j97qv-0005wH-1l; Tue, 03 Mar 2020 13:44:53 +0000 Date: Tue, 3 Mar 2020 13:44:53 +0000 From: Russell King - ARM Linux admin To: Vladimir Oltean Cc: Oleksij Rempel , mkl@pengutronix.de, Andrew Lunn , Vivien Didelot , Florian Fainelli , kernel@pengutronix.de, netdev , lkml , david@protonic.nl, "David S. Miller" Subject: Re: [PATCH v1] net: dsa: sja1105: add 100baseT1_Full support Message-ID: <20200303134452.GL25745@shell.armlinux.org.uk> References: <20200303074414.30693-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 12:04:04PM +0200, Vladimir Oltean wrote: > On Tue, 3 Mar 2020 at 09:44, Oleksij Rempel wrote: > > > > Validate 100baseT1_Full to make this driver work with TJA1102 PHY. > > > > Signed-off-by: Oleksij Rempel > > --- > > I was expecting this patch sooner or later. > > Acked-by: Vladimir Oltean > > I should take this opportunity and express the fact that it is strange > for MAC drivers to have to sign off all possible copper and fiber > media types in their .phylink_validate method. Sooner or later > somebody is going to want to add 1000Base-T1 too. I don't think it is > going to scale very well. Russell, with your plan to make MAC drivers > just populate a bitmap of phy_modes (MII side), is it also going to > get rid of media side validation? You're touching on a concern I've had for some time that the link modes mix together several different parameters: speed, duplex, and media. What we actually want for a MAC is to know which speeds and duplexes they support for each interface mode, and then translate that to the ethtool link modes as appropriate. That isn't a problem I've addressed yet, but something that could be addressed. I've just updated my net-queue with a bunch of stuff that's been sitting in other branches (some published, some not), which includes the PHY_INTERFACE_MODE bitmap changes - everything from and including "net: mvpp2: add port support helpers" concerns the bitmap stuff. At the moment, it has to support both the new bitmap solution and the legacy solution, but hopefully in time we can drop the legacy solution. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up