From patchwork Fri Apr 22 07:35:01 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: 12822970 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 0AE7BC433EF for ; Fri, 22 Apr 2022 07:46:49 +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=VKM2RHte1KZvKn75SQg1QWcDDaB3bfwJH7zFTB2DTxs=; b=HdPYb/GWXqaSnu 7YXEzJAlGvQHMYtKCG9M7Lp3PIwk+1X2xj3SW8wDAKj7HxrWAw7iMcscwsigY41PKFE09vOr3giin NFXCkpmf6c+tjrNPM7AM7s5kgrHzTgOv0NKtxcYYC9JmxWKdDx53LoClzGFNZDQqyaYVNkj/SUDbC tfYj+GNUk5mxFoeiMFKrRJSi+B7hc8nJkNF/Rf/brGpE20j+0b9Ae/PGYupCR3SahnOz+0reH8J8t B1i4cOl7SZeY9nvViMFrHvHW3WkdGhOmCBzglYLm01xVL6xu9zS0Yrgi00HLLBK420Y7Ar/gJF3fU qWfhC+LX7j0hPesoHOjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhnyj-00GwlL-MY; Fri, 22 Apr 2022 07:45:22 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhntO-00Gu5w-3s for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 07:39:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650613190; x=1682149190; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ceiOamkSNXFkwRvrAB5A2HWzHS4prL9tkVLL0BwFR5g=; b=Ee83EnCjUPnJ4M8OIlx0JTT3qoWLAos4l8Ess0UHkqW/gcPxSdBZpwSc 7G47hMFvAyIJ9ugqTcNJKhOcgI9JezRRt9nQG6susszwqwBiVsyJXqkrh LCNmCLdIlleVhGt8OaSZ0NCpYmpi7wS/rR+5C6kAldOL1TxBi3NPQe5cW Nak0Dr8tRpHrj+F/Yvy37RaQcnJ/N0uGNWx/hFy9dSZKM+kQ0H2EB7Nqm Y8FggNtJ004VTH0zcl3t/tO1sl4/sst5p0roYcy89Ktx2mrEftkXdnJl8 RbN88LArvIwKqblo5IB26/YXIBR5uFj8RyNV1/btCIadvH3qj7dHCgPFB A==; X-IronPort-AV: E=McAfee;i="6400,9594,10324"; a="244534049" X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="244534049" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 00:39:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="648516302" Received: from p12hl98bong5.png.intel.com ([10.158.65.178]) by FMSMGA003.fm.intel.com with ESMTP; 22 Apr 2022 00:39:23 -0700 From: Ong Boon Leong To: Alexandre Torgue , Jose Abreu , Andrew Lunn , Heiner Kallweit , Russell King , Paolo Abeni , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Alexandre Torgue , 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, Ong Boon Leong Subject: [PATCH net-next 0/4] pcs-xpcs, stmmac: add 1000BASE-X AN for network switch Date: Fri, 22 Apr 2022 15:35:01 +0800 Message-Id: <20220422073505.810084-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-20220422_003950_204410_77D655F5 X-CRM114-Status: GOOD ( 10.97 ) 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 Hi, 1/4: Add the support for 1000BASE-X AN to pcs-xpcs which previously supports C37 SGMII AN mode. 2/4: Add the capability to bypass PHY device detection in stmmac driver as hinted based on platform data. 3/4 & 4/4: Make dwmac-intel to detect DMI info to switch specific ethernet interface to use phyless mode according to Ericsson platform need. This patch series has been tested by Ericsson engineer Emilio Riva separately on its lab. Thanks Ong Boon Leong (4): net: pcs: xpcs: add CL37 1000BASE-X AN support net: stmmac: introduce PHY-less setup support stmmac: intel: prepare to support 1000BASE-X phy interface setting stmmac: intel: introduce platform data phyless setting for Ericsson system .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 68 ++++++- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 10 +- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- drivers/net/pcs/pcs-xpcs.c | 174 +++++++++++++++++- include/linux/pcs/pcs-xpcs.h | 3 +- include/linux/stmmac.h | 1 + 6 files changed, 250 insertions(+), 8 deletions(-) --- 2.25.1