Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp647189pxb; Thu, 12 Nov 2020 12:39:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHgjq7bo6hvzC96BUPCibzjtAmlBQEJCX/zpq/DS2rOamPpdXt/CuXREsJFQ2tR7b/E9Oj X-Received: by 2002:a05:6402:b02:: with SMTP id bm2mr1730408edb.299.1605213547290; Thu, 12 Nov 2020 12:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605213547; cv=none; d=google.com; s=arc-20160816; b=AiEKF7fcvkGcpZxAZvSYrBHuUvpkf2nIXsp8OgqcetUgHxCDY03wR+xLhfFdZ6bpAs iiiA3KNu5SS5R92E+GOXACuzNXvip6u3f/MlwXPGglOL2Pt7DLTRFv/EpFnKujzWpv9B SZqdkBnBFjA7sVtaEpGeF7I3Buud1co/2eULb4fcVwd9SFR0aeKmJUDmCKmWaToZSpnI +QxwpTk4TYGBovR2dSujog1G5HUVy+RFKgWRurX2OtH4XtxA0PhyWTIRMEhyQQJBKLMo GHYw/xMGPhE0qmKuYA58+r4QtmJvxM2CKzDRkMjvn4JI12zFvOU+xlal650kZEG1WmsN i3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=EDOP3/nASmw4QhpA4LaShQcfdx+166fsluYPB2L0+cE=; b=cUwLbEGk9qJ/CTxwvXtd5tJvAyUew9v/R14X8bWNaQTJop/o/ysv+pVv7578UNWcon Vt9TyDcWiNDgUnTcQ1zXcdS6gUcDiAtUlJ65HhZ2vdUcFAlHX6LC6TqvLHXgD+bnYAvV /zapVd1Jl06zWPtNRQsk71Lqta9wj5SqN/b0aINoEDyRKgL9bQ+zuu4iwzShy/zlO5R/ OeI606C38TObhxzFXCttvC1bkkWqHDM/ayU3L077yqudOXGTe48ywfkWeKdRml9jIU+e auL30a5upA6+6M17QA27YgTFLK/vFDYxMmQRU5zatB5SOGdbxkahY2YHxdx9e5FA/KNX +5hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si4714642edp.176.2020.11.12.12.38.42; Thu, 12 Nov 2020 12:39:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbgKLUeS (ORCPT + 99 others); Thu, 12 Nov 2020 15:34:18 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:50373 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727025AbgKLUeS (ORCPT ); Thu, 12 Nov 2020 15:34:18 -0500 Received: from localhost.localdomain (ip5f5af1d9.dynamic.kabel-deutschland.de [95.90.241.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 347A62064712A; Thu, 12 Nov 2020 21:34:15 +0100 (CET) From: Paul Menzel To: Jesse Brandeburg , Tony Nguyen Cc: Jostar Yang , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Guohan Lu , Paul Menzel Subject: [PATCH] ixgbe: Support external GBE SerDes PHY BCM54616s Date: Thu, 12 Nov 2020 21:33:56 +0100 Message-Id: <20201112203356.344748-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jostar Yang The Broadcom PHY is used in switches, so add the ID, and hook it up. This upstreams the Linux kernel patch from the network operating system SONiC from Februar 2020 [1]. [1]: https://github.com/Azure/sonic-linux-kernel/pull/122 Signed-off-by: Jostar Yang Signed-off-by: Guohan Lu Signed-off-by: Paul Menzel --- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 3 +++ drivers/net/ethernet/intel/ixgbe/ixgbe_type.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c index fc389eecdd2b..cb685e917b0c 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c @@ -380,6 +380,9 @@ static enum ixgbe_phy_type ixgbe_get_phy_type_from_id(u32 phy_id) case X557_PHY_ID2: phy_type = ixgbe_phy_x550em_ext_t; break; + case BCM54616S_E_PHY_ID: + phy_type = ixgbe_phy_ext_1g_t; + break; default: phy_type = ixgbe_phy_unknown; break; diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h index 2be1c4c72435..4c317b0dbfd4 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h @@ -1407,6 +1407,7 @@ struct ixgbe_nvm_version { #define QT2022_PHY_ID 0x0043A400 #define ATH_PHY_ID 0x03429050 #define AQ_FW_REV 0x20 +#define BCM54616S_E_PHY_ID 0x03625D10 /* Special PHY Init Routine */ #define IXGBE_PHY_INIT_OFFSET_NL 0x002B -- 2.29.2