Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2650118imj; Mon, 11 Feb 2019 06:28:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZritJiAky3sQwYpBaP6oHrKmPY3vJlp/u9oSmqYbfR7AneM2oHbN6IR5u6CbUu8515jTPt X-Received: by 2002:a62:6f49:: with SMTP id k70mr36671357pfc.7.1549895306451; Mon, 11 Feb 2019 06:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895306; cv=none; d=google.com; s=arc-20160816; b=qwk73PYWwAuYM5JOVrGr754/ZxE//DZCXDpR9qDDzOsqbukrJ4m+oLomThGty0t1nQ SO7Ssj07wnxRuSrnpaGQoj6nAMWfLRy/YBU1StPG31/knypjoaZsrp1zdDbPRKfW6IKr mv/8omMz88oXCSPHhvFUq0wjByHE16XVcfc/pZgrWgNSIPtvFev+faR9viNm/gVju9zu 5VMt4M1Yv6brG1APq7srVxSdsaX18HH7i/yHPRw74uCV2hM5yaui1N9Thqpr0aY2AyI8 JX7iAZgfUwwf757r0ipJbqNxqeJ0PrKzQK965D3/U+nrHJRCFaoAwKVvkkxu1jwudBo9 CNLA== 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:mime-version :message-id:date:subject:cc:to:from; bh=LjhLkBRITSIsUAkh7znX/AbGiOSxLQaAJRY0qVt+mYI=; b=Yi5bFsBBqkZIc2fH/kulZ5Hn6Y5rwC3DBSdk7SO/I06BoaDyPeaP0H4IlhxhG7Xyd2 hrne5zaQ8A05JFSU/H+n7WzPMRlY9M8AYqC/XZaPexL844zlBUJ/oHGm1ha8k26alKSi GJSP1R3HRWmgl4eLQAIy7xn2n5NY+ZRB3OuSPMU0sc93G26aMTBO96dhwfPOUtiKOEAG 2V+ZhzrBCBNNHvKUnfiSRdRe6Vg+ZSZ5dsroc+MucqHdD7FEfOTPCC+cS9uEEE4ANW1J VK4dhMpGKwUCXi+w7cT2CRRzcSWBu9pk5XPSKlDZ5j7JTFyazTYiSC2nyVt88D7WwDE5 +++g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si9283941pgq.553.2019.02.11.06.28.10; Mon, 11 Feb 2019 06:28:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729451AbfBKOZw (ORCPT + 99 others); Mon, 11 Feb 2019 09:25:52 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:34449 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729423AbfBKOZn (ORCPT ); Mon, 11 Feb 2019 09:25:43 -0500 X-Originating-IP: 90.88.22.177 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-80-177.w90-88.abo.wanadoo.fr [90.88.22.177]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 6B4EC240010; Mon, 11 Feb 2019 14:25:38 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, mw@semihalf.com Subject: [PATCH net-next 0/4] net: phy: Add 2.5G/5GBASET PHYs support Date: Mon, 11 Feb 2019 15:25:25 +0100 Message-Id: <20190211142529.22885-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 802.3bz standard defines 2 modes based on the NBASET alliance work that allow to use 2.5Gbps and 5Gbps speeds on Cat 5e, 6 and 7 cables. This series adds the necessary infrastructure to handle these modes with C45 PHYs. This series was originally part of a bigger one, that has seen 2 iterations [1] [2] that added support for these modes on Marvell Alaska PHYs. Following some discussions with Heiner and Andrew [3], we decided to split-out the generic parts so that we can work together on the following steps to get these mode fully working with Aquantia and Marvell PHYS. The first 3 patches are reworking some of the internal network phy infrastructure to handle the new modes in a more generic way. The 4th patch adds all the C45 register definition and accesses that follows the 802.3bz standard to support 2.5GBASET and 5GBASET. [1] : https://lore.kernel.org/netdev/20190118152352.26417-1-maxime.chevallier@bootlin.com/ [2] : https://lore.kernel.org/netdev/20190207094939.27369-1-maxime.chevallier@bootlin.com/ [3] : https://lore.kernel.org/netdev/81c340ea-54b0-1abf-94af-b8dc4ee83e3a@gmail.com/ Maxime Chevallier (4): net: phy: Mask-out non-compatible modes when setting the max-speed net: phy: Move of_set_phy_eee_broken to phy-core.c net: phy: Extract genphy_c45_pma_read_abilities from marvell10g net: phy: Add generic support for 2.5GBaseT and 5GBaseT drivers/net/phy/marvell10g.c | 78 +++--------------------- drivers/net/phy/phy-c45.c | 111 +++++++++++++++++++++++++++++++++++ drivers/net/phy/phy-core.c | 72 +++++++++++++++++++++++ drivers/net/phy/phy_device.c | 81 ------------------------- include/linux/phy.h | 3 + include/uapi/linux/mdio.h | 16 +++++ 6 files changed, 210 insertions(+), 151 deletions(-) -- 2.19.2