From patchwork Wed Jun 15 08:39:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ong Boon Leong X-Patchwork-Id: 12881940 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DAF2C433EF for ; Wed, 15 Jun 2022 08:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=sKgndX44Q0B8qHCXncIx/d2gA19SrvqPtAuR5+GgcBk=; b=eOf842K1Wb/Lgt oHocLwZNNOsWkh/1JEpLruVGjFZuw/x9zQRpgGHUE6A5/39iK+dTe5vtp81n7Lud4C0UGRb/hOYPi UeeGNv82jo8Fu+nLAcseeSuJ6HPTopDa3ZdkReDYuzfrCet3SD4EGoOCF98k2onLNcGBHzvQrnN2W UmKjvhGpik+WRIA0tvkAJFpHBWNh5OMQilx68JJyc3Wa1VIVJ8+qYn+JDwxvZFvFW+saxsQHmEWtU vEhzjI6q/UiZmhNKVL7Se8f2EzLK8JdqT91VpFI3cbAPQ4vux0UaT2J7S9PcFKC5Hys2Thm5bmpEg IqROAoGkcHRbyHJaHpwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Od5-00DJdp-NO; Wed, 15 Jun 2022 08:43:59 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Od2-00DJcL-MA for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 08:43:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655282636; x=1686818636; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9BCmaDXuxZ78d4GhPN+LZuRqgQk4eGFz2he5NDkGKa4=; b=mCCHKCM21FJnIc4dzvHH93pTnROJG/VKYN/ySmVdSrBgIqAsRggxJpm4 DjAOGqSpVjuvqIAtTkdUOdlGwNYeGrn/Pw5znh0Crthj3n6zZE9wkJDsI zdWH44Q+L55AbDC/5+iuJa+XxQnALs9J+8zAxVExaSyP1yhIuDCUWqKym 5d0gGoCcsN/Zl+cK9fbmLVScbtY7j1YAUI+cjslwCfzLjOqouboogtR66 1VQqZOzTSiujlvXyRCmY4cHT87XBMTwGfkjchU/cxX+Qskrs9GMeHVsDP 11j2x2tgNCQAGVY1vyJUXbcsFPUbqR18AoUX5OVjlSJn7aIrs1+CrRGKH w==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="276457832" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="276457832" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 01:43:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="712849326" Received: from p12hl98bong5.png.intel.com ([10.158.65.178]) by orsmga004.jf.intel.com with ESMTP; 15 Jun 2022 01:43:49 -0700 From: Ong Boon Leong To: Alexandre Torgue , Jose Abreu , Andrew Lunn , Heiner Kallweit , Russell King , Paolo Abeni , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Vladimir Oltean , Vivien Didelot , Florian Fainelli , Maxime Coquelin , Giuseppe Cavallaro Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Emilio Riva , Ong Boon Leong Subject: [PATCH net-next v5 0/5] pcs-xpcs, stmmac: add 1000BASE-X AN for network switch Date: Wed, 15 Jun 2022 16:39:03 +0800 Message-Id: <20220615083908.1651975-1-boon.leong.ong@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_014356_777485_7844B6B6 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Thanks for v4 review feedback in [1] and [2]. I have changed the v5 implementation as follow. v5 changes: 1/5 - No change from v4. 2/5 - No change from v4. 3/5 - [Fix] make xpcs_modify_changed() static and use mdiodev_modify_changed() for cleaner code as suggested by Russell King. 4/5 - [Fix] Use fwnode_get_phy_mode() as recommended by Andrew Lunn. 5/5 - [Fix] Make fwnode = of_fwnode_handle(priv->plat->phylink_node) order after priv = netdev_priv(dev). v4 changes: 1/5 - Squash v3:1/7 & 2/7 patches into v4:1/6 so that it passes build. 2/5 - [No change] same as v3:3/7 3/5 - [Fix] Fix issues identified by Russell in [1] 4/5 - [Fix] Drop v3:5/7 patch per input by Russell in [2] and make dwmac-intel clear the ovr_an_inband flag if fixed-link is used in ACPI _DSD. 5/5 - [No change] same as v3:7/7 For the steps to setup ACPI _DSD and checking, they are the same as in [3] Reference: [1] https://patchwork.kernel.org/comment/24894239/ [2] https://patchwork.kernel.org/comment/24895330/ [3] https://patchwork.kernel.org/project/netdevbpf/cover/20220610033610.114084-1-boon.leong.ong@intel.com/ Thanks Boon Leong Ong Boon Leong (5): net: make xpcs_do_config to accept advertising for pcs-xpcs and sja1105 stmmac: intel: prepare to support 1000BASE-X phy interface setting net: pcs: xpcs: add CL37 1000BASE-X AN support stmmac: intel: add phy-mode and fixed-link ACPI _DSD setting support net: stmmac: make mdio register skips PHY scanning for fixed-link drivers/net/dsa/sja1105/sja1105_main.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 34 +++- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 12 +- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 14 ++ drivers/net/pcs/pcs-xpcs.c | 176 +++++++++++++++++- drivers/net/pcs/pcs-xpcs.h | 1 - include/linux/pcs/pcs-xpcs.h | 3 +- 7 files changed, 229 insertions(+), 13 deletions(-) --- 2.25.1