Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1378437ybl; Fri, 16 Aug 2019 14:00:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBhbtBva2Eqrpf6LSVR+HkFfUIwQ5TzRYFv3hV5mQ0PwGvcIaleHkJt/tWxHoT5/Gqjx/9 X-Received: by 2002:aa7:9191:: with SMTP id x17mr12650403pfa.23.1565989248118; Fri, 16 Aug 2019 14:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565989248; cv=none; d=google.com; s=arc-20160816; b=f2gRc+82hxtCuetMAYv/JK3e+J2vgaLkLhdv9UOhHiHMikUDTJLBRgh97n/AcQUSKi 28mas3mmeOO3IYqzrBXSUExh17g+pDdKDr9EA0jbZ/bSdPR/L6C9fjA0TLDyJQCx19kx P16032ZLY/ubfJaQZMmxIDnKBHfph8y1+TUzGuV2GE0apadyoeXSu3bfh6PWowAePV1y saCyLptDGmjsJGmWNvSWKcHe0pq99gjHJ02OTFxNFx8NB6163OEs5qYIiekOrBuFIPEN LolC7hMSbeTPNqnyyrHpDaUhid0HVS+tHCU4+RiC2moQDj49+sNSDazoYU/93uOLwS3O LL1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=fF23+eeI8IwqTgiv4la+N5iJcg94TGRZOaJt6jU0zYo=; b=Axc7ZDlZqib9IX8JHtIOgFI2eCUal6nCe+dbdD3CP5ZpdkbYSiwhRu7nrpGOBbK2Qd zam6bZKZSK66qTKBHob0gz1/wSpqNFAZfpWoz0+PXsgHS7Xp2owT8VWzGRbRrjJqA8ol H7uuwH9lMb9ylTwqCI+cCubfbR8cKL/L0qc6vHQUSNaBbXQ5c02XsVHXNh3PYcDQABTL LVDeGw1fjeN7aEv6wIqZ+kPwLqpiXhmoHDsp0J6oj8Ic8jNKGF7+eWdSTs+eYRacYq6P gceNE6ZZJ0IR8k681TUYqcygeB9SN0BI0LAnL8nxsxlvfCsMA9jX5MHGO3ZlNxIwOreb kOkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UqAgh1kd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y184si5127630pfb.162.2019.08.16.14.00.32; Fri, 16 Aug 2019 14:00:48 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=UqAgh1kd; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbfHPU7k (ORCPT + 99 others); Fri, 16 Aug 2019 16:59:40 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45242 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727548AbfHPU7j (ORCPT ); Fri, 16 Aug 2019 16:59:39 -0400 Received: by mail-wr1-f68.google.com with SMTP id q12so2721382wrj.12; Fri, 16 Aug 2019 13:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fF23+eeI8IwqTgiv4la+N5iJcg94TGRZOaJt6jU0zYo=; b=UqAgh1kdtKJ99eTg1a0x/izcunJ++rokRIH2L1KbGWWMFK/9a0OMSfu7C8oSNEI45V sCc0zBqLNk3yhtcbG+fN7QRCZvzjMcIBXYKouGYMWpwaDVZogEI76BUzyUkckvFD2Ho3 ZSnMWCr9ye+c6MDPS4HVQO1q0u/G5UmPqvznPI4lj4l0KHAdzQ2kuEbauBsirUvGDVpg Zgj8lksCC2+cI+CCcs7iXhKA7po5lt/D0GPoIoG7vFaCJvIlA7XAhVP2hv4cVseDqMYu bZaifm20rPtUK1ydAOn88TBi9bhgcyJShe83IcvUOD13JWloz39zqZMeUaxyNRINm3pW h/pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fF23+eeI8IwqTgiv4la+N5iJcg94TGRZOaJt6jU0zYo=; b=KU73MGG17jmyBrlykYntpdxMDAXxMORDk7DEKkPKXy1oBgslMHKqUeYT+Y8yjE6xsH LuLn6feI/aX05rUpRu2aZh/qlInEJfF3tqMjg8GTO6NHnjLbYoXBTYOfgBISTs7asDaP tOWqOuqUOcTd4jJBBberzHnc+kkSDXnv11VefpANQoyg2RwIH1+OHHKT1lv6BppAwIlm wfVVbEfTMXZtiX/0ekoOzvRnR39+M+E7ODnPo+xHAKFqDEWPto2U9M/tsDrFwLngxezh PxsR8bApzTuNw4hlCce4m71o9NF/ywKNrPseXjwVOc9K82NHHvoCkyIbtjtVM8boCka/ OcAA== X-Gm-Message-State: APjAAAXmskIKkpMQYwGYnrRziKmQqksKLCnis4j7fGlRYgK/lu1YweAj E+VMZZ6l6m/syQ6GrCEzaxRPeb0l X-Received: by 2002:adf:fd8b:: with SMTP id d11mr12233594wrr.300.1565989176963; Fri, 16 Aug 2019 13:59:36 -0700 (PDT) Received: from ?IPv6:2003:ea:8f2f:3200:4112:e131:7f21:ec09? (p200300EA8F2F32004112E1317F21EC09.dip0.t-ipconnect.de. [2003:ea:8f2f:3200:4112:e131:7f21:ec09]) by smtp.googlemail.com with ESMTPSA id s19sm5193349wrb.94.2019.08.16.13.59.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 13:59:36 -0700 (PDT) Subject: Re: [PATCH net-next 0/1] Add BASE-T1 PHY support To: Christian Herber , "davem@davemloft.net" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20190815153209.21529-1-christian.herber@nxp.com> From: Heiner Kallweit Message-ID: <8c15b855-6947-9930-c3df-71a64fbff33b@gmail.com> Date: Fri, 16 Aug 2019 22:59:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190815153209.21529-1-christian.herber@nxp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.08.2019 17:32, Christian Herber wrote: > This patch adds basic support for BASE-T1 PHYs in the framework. > BASE-T1 PHYs main area of application are automotive and industrial. > BASE-T1 is standardized in IEEE 802.3, namely > - IEEE 802.3bw: 100BASE-T1 > - IEEE 802.3bp 1000BASE-T1 > - IEEE 802.3cg: 10BASE-T1L and 10BASE-T1S > > There are no products which contain BASE-T1 and consumer type PHYs like > 1000BASE-T. However, devices exist which combine 100BASE-T1 and 1000BASE-T1 > PHYs with auto-negotiation. Is this meant in a way that *currently* there are no PHY's combining Base-T1 with normal Base-T modes? Or are there reasons why this isn't possible in general? I'm asking because we have PHY's combining copper and fiber, and e.g. the mentioned Aquantia PHY that combines NBase-T with 1000Base-T2. > > The intention of this patch is to make use of the existing Clause 45 functions. > BASE-T1 adds some additional registers e.g. for aneg control, which follow a > similiar register layout as the existing devices. The bits which are used in > BASE-T1 specific registers are the same as in basic registers, thus the > existing functions can be resued, with get_aneg_ctrl() selecting the correct > register address. > If Base-T1 can't be combined with other modes then at a first glance I see no benefit in defining new registers e.g. for aneg control, and the standard ones are unused. Why not using the standard registers? Can you shed some light on that? Are the new registers internally shadowed to the standard location? That's something I've seen on other PHY's: one register appears in different places in different devices. > The current version of ethtool has been prepared for 100/1000BASE-T1 and works > with this patch. 10BASE-T1 needs to be added to ethtool. > > Christian Herber (1): > Added BASE-T1 PHY support to PHY Subsystem > > drivers/net/phy/phy-c45.c | 113 +++++++++++++++++++++++++++++++---- > drivers/net/phy/phy-core.c | 4 +- > include/uapi/linux/ethtool.h | 2 + > include/uapi/linux/mdio.h | 21 +++++++ > 4 files changed, 129 insertions(+), 11 deletions(-) > Heiner