From patchwork Fri Feb 25 02:33:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wong Vee Khee X-Patchwork-Id: 12759552 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 AED69C433EF for ; Fri, 25 Feb 2022 02:28:18 +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=wZp8AF9Qu58otGL+kVzRNJD1dni5PhhwXSEsxjBCe/k=; b=EMjAAgx3eiP8yn t0SbWILox/EPJmNPZ8Ml8fn/Ul4Z2yVde1B1+CDnrkDjKRNxqmC0bfpbhDG3nGSwVufy5jYsl9x46 ZblU04ODIuBew1CFr0LgxCuL4he5m39TFk4tSFzE9cgR7Z4vdshDNQCTgZ5A9uR9WvyoDa2Fq0hQY fpM75ybgxl3/b15g6o7LhPZFp7KGIY0UdFsBuPf2haJXa8SwEPBWlgx5NWPskXdzwuvcHz0IyOsmI 3TehmcK5OeH42eeJcWtklE+X5CFm9cHwO5TZcigN3raR63/4fWG91CGF8kUAVLMCf1s3AhCH9vQAV /4yFZR0wMARaLGvj4v6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNQKB-0030EP-KI; Fri, 25 Feb 2022 02:27:15 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNQK7-0030CI-HA for linux-arm-kernel@lists.infradead.org; Fri, 25 Feb 2022 02:27:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645756031; x=1677292031; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=pGMxtqj6fQbBiqvL8b0jEE020+1PJHR6Ska29JmSylg=; b=L/HuPl6WoxsFLKTDc5YoOCLmmMuq7Bsu9AvsZzotptD1nOvgmmAwf6K5 F7BvHRL9GZCWbnNGN6/Biqnv4zh4L2zuVBIWH214aZ9XR7/ogcPK8IQIF Iu2mkndjC+6zUBGs/KyPAqSFKhKtgLiVUheMoVXwl6Z+TlEx6/6PiIJ8T FRRYveahKILD7UoUGxWl0h1PNxA9uPFlQ1pp1ZgPbydf/g93Jk9+bqrQb ZasOgDcZZ2uC/Pw6K28wpOXZrhAdOLh2pbDK+o924WBsPTWQArtthgT10 DoNQF7QiIy6OvsiChP7G0QkDa2/DeT8CnCD2BW8RNp57kTZI1Iui1F7jD Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="252322841" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="252322841" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 18:27:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="509107432" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 24 Feb 2022 18:27:09 -0800 Received: from P12HL01TMIN.png.intel.com (P12HL01TMIN.png.intel.com [10.158.65.75]) by linux.intel.com (Postfix) with ESMTP id CC0B5580A6C; Thu, 24 Feb 2022 18:27:06 -0800 (PST) From: Wong Vee Khee To: "David S . Miller" , Jakub Kicinski , Maxime Coquelin Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/1] stmmac: intel: Enable 2.5Gbps for Intel AlderLake-S Date: Fri, 25 Feb 2022 10:33:25 +0800 Message-Id: <20220225023325.474242-1-vee.khee.wong@linux.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-20220224_182711_641896_7E639B97 X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. 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 Intel AlderLake-S platform is capable of running on 2.5GBps link speed. This patch enables 2.5Gbps link speed on AlderLake-S platform. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 5943ff9f21c2..32ef3df4e266 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -721,6 +721,7 @@ static int tgl_common_data(struct pci_dev *pdev, plat->rx_queues_to_use = 6; plat->tx_queues_to_use = 4; plat->clk_ptp_rate = 200000000; + plat->speed_mode_2500 = intel_speed_mode_2500; plat->safety_feat_cfg->tsoee = 1; plat->safety_feat_cfg->mrxpee = 0; @@ -740,7 +741,6 @@ static int tgl_sgmii_phy0_data(struct pci_dev *pdev, { plat->bus_id = 1; plat->phy_interface = PHY_INTERFACE_MODE_SGMII; - plat->speed_mode_2500 = intel_speed_mode_2500; plat->serdes_powerup = intel_serdes_powerup; plat->serdes_powerdown = intel_serdes_powerdown; return tgl_common_data(pdev, plat); @@ -755,7 +755,6 @@ static int tgl_sgmii_phy1_data(struct pci_dev *pdev, { plat->bus_id = 2; plat->phy_interface = PHY_INTERFACE_MODE_SGMII; - plat->speed_mode_2500 = intel_speed_mode_2500; plat->serdes_powerup = intel_serdes_powerup; plat->serdes_powerdown = intel_serdes_powerdown; return tgl_common_data(pdev, plat);