Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2659608ybb; Mon, 30 Mar 2020 10:21:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsH3DvgSYTBwv9sErlDmRzHVT19Qq6mnjklsGAt+olIABPwsyJ+dnIO6soFKFpf1/1eBynw X-Received: by 2002:a05:6830:4035:: with SMTP id i21mr9218768ots.348.1585588914347; Mon, 30 Mar 2020 10:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585588914; cv=none; d=google.com; s=arc-20160816; b=GU036jtTd8Q2T+x3VAc2yjzsY+Piy5rxzVNuYO5mec0rRgtWw/uIxjkg+5W9HgVlIs wQFDetHCeYZUG1yNtC9pYnFMAqEhaAlA15YK9FZP8KZ7NaiDlj1Y27wo2BBNpINozIzm IvTFNd5N0ReqJgtj5Q3dGY4OPTvfhXTVUpVVhPNDOqHZtPivuqG3EMzRG7lj1cs/q8WF src07L+Ca75xhDG//5wHaWDgLbgpgQuWgJu8LsA6WXcCkKkT+128mwtsJcPvEW79jcMs F3fCmJPU7SI1MDP7xS587Z6DfuVkFDu0/PAGvMQChUwN9H1Adi7dZypP+jaxOvfxKcLz +1lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=FVtev/A5qX9ebJ1mMZPbhOH0aYHn7T1KpLcE2kj54Z8=; b=gjLNJkfnJ88TEVGSW90Ys0UW9vMU7FeVmHNbb6+nk/umh98u/2GMBPGA8y2fz4V6Te pRPgOdWqTwHh4efIqxI38OqaeIw6zPxXbgm4NG1z7MtdCU6EOvuX+pO7hREJhWybUXP+ EGk8bN7AF2yzYOUj7RebmeDPHVFTKDva9W8qcpHluplstYKaL0Lqsp3bvE7fi+yogXlN 8tbfzH82ISdK2dHwkkupRm1ccsLsizpUbDAYImqcG4oTgIJ3ClFhrxhrlBQzw0iBeVx+ jeM4vTUkwt3t8EwcoDdmrkeBjfpl7BoPvpYmlaKdRDfbFS7AqentjCW1dMTFRk3cZGVM bcWw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si6297153oif.104.2020.03.30.10.21.41; Mon, 30 Mar 2020 10:21:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730345AbgC3RF1 (ORCPT + 99 others); Mon, 30 Mar 2020 13:05:27 -0400 Received: from mga01.intel.com ([192.55.52.88]:10809 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730268AbgC3RFZ (ORCPT ); Mon, 30 Mar 2020 13:05:25 -0400 IronPort-SDR: bJrNy6Qh5lK3fUyAXzW9Ik2OE4bwCiAtwgRutojwLFltrbBpymf3cNSxmMa+5xCp142vABh2aN ZUjyeddv1n3w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 10:05:25 -0700 IronPort-SDR: KML/ZVXpYdd0mp/sFUfG2OKlEDEegtiHVV2ziozQKms9EB1QVlXKPek04CFc7p/XZZfeRLhb/Y rjiakd21Epsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,325,1580803200"; d="scan'208";a="294667253" Received: from unknown (HELO climb.png.intel.com) ([10.221.118.165]) by FMSMGA003.fm.intel.com with ESMTP; 30 Mar 2020 10:05:22 -0700 From: Voon Weifeng To: "David S . Miller" , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jose Abreu , Giuseppe Cavallaro , Andrew Lunn , Alexandre Torgue , Ong Boon Leong , Voon Weifeng Subject: [net-next,v2, 3/3] net: stmmac: add EHL 2.5Gbps PCI info and PCI ID Date: Tue, 31 Mar 2020 01:05:12 +0800 Message-Id: <20200330170512.22240-4-weifeng.voon@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330170512.22240-1-weifeng.voon@intel.com> References: <20200330170512.22240-1-weifeng.voon@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add EHL SGMII 2.5Gbps PCI info and PCI ID Signed-off-by: Voon Weifeng --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 12927571cee4..5419d4e478c0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -537,30 +537,38 @@ static int __maybe_unused intel_eth_pci_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(intel_eth_pm_ops, intel_eth_pci_suspend, intel_eth_pci_resume); -#define PCI_DEVICE_ID_INTEL_QUARK_ID 0x0937 -#define PCI_DEVICE_ID_INTEL_EHL_RGMII1G_ID 0x4b30 -#define PCI_DEVICE_ID_INTEL_EHL_SGMII1G_ID 0x4b31 +#define PCI_DEVICE_ID_INTEL_QUARK_ID 0x0937 +#define PCI_DEVICE_ID_INTEL_EHL_RGMII1G_ID 0x4b30 +#define PCI_DEVICE_ID_INTEL_EHL_SGMII1G_ID 0x4b31 +#define PCI_DEVICE_ID_INTEL_EHL_SGMII2G5_ID 0x4b32 /* Intel(R) Programmable Services Engine (Intel(R) PSE) consist of 2 MAC * which are named PSE0 and PSE1 */ -#define PCI_DEVICE_ID_INTEL_EHL_PSE0_RGMII1G_ID 0x4ba0 -#define PCI_DEVICE_ID_INTEL_EHL_PSE0_SGMII1G_ID 0x4ba1 -#define PCI_DEVICE_ID_INTEL_EHL_PSE1_RGMII1G_ID 0x4bb0 -#define PCI_DEVICE_ID_INTEL_EHL_PSE1_SGMII1G_ID 0x4bb1 -#define PCI_DEVICE_ID_INTEL_TGL_SGMII1G_ID 0xa0ac +#define PCI_DEVICE_ID_INTEL_EHL_PSE0_RGMII1G_ID 0x4ba0 +#define PCI_DEVICE_ID_INTEL_EHL_PSE0_SGMII1G_ID 0x4ba1 +#define PCI_DEVICE_ID_INTEL_EHL_PSE0_SGMII2G5_ID 0x4ba2 +#define PCI_DEVICE_ID_INTEL_EHL_PSE1_RGMII1G_ID 0x4bb0 +#define PCI_DEVICE_ID_INTEL_EHL_PSE1_SGMII1G_ID 0x4bb1 +#define PCI_DEVICE_ID_INTEL_EHL_PSE1_SGMII2G5_ID 0x4bb2 +#define PCI_DEVICE_ID_INTEL_TGL_SGMII1G_ID 0xa0ac static const struct pci_device_id intel_eth_pci_id_table[] = { { PCI_DEVICE_DATA(INTEL, QUARK_ID, &quark_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_RGMII1G_ID, &ehl_rgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_SGMII1G_ID, &ehl_sgmii1g_pci_info) }, + { PCI_DEVICE_DATA(INTEL, EHL_SGMII2G5_ID, &ehl_sgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_PSE0_RGMII1G_ID, &ehl_pse0_rgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII1G_ID, &ehl_pse0_sgmii1g_pci_info) }, + { PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII2G5_ID, + &ehl_pse0_sgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_PSE1_RGMII1G_ID, &ehl_pse1_rgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII1G_ID, &ehl_pse1_sgmii1g_pci_info) }, + { PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII2G5_ID, + &ehl_pse1_sgmii1g_pci_info) }, { PCI_DEVICE_DATA(INTEL, TGL_SGMII1G_ID, &tgl_sgmii1g_pci_info) }, {} }; -- 2.17.1