From patchwork Fri Aug 4 14:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13341982 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 3268FC04A94 for ; Fri, 4 Aug 2023 14:48:07 +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=s7iCxjLg7pOYPB4sZIHqymhPLeffqbBx75pQe/4eKcI=; b=QIP+OmodkFWm1a 7NC7NUTNivMDs+M3/lhvLuFnjOLL01t4PhXrwpzKvrqS6tKeHtRdxNK57JvUfCUtCTfwJHVfHrrjr 5kKBao6YGtkNdca0BlkzvD0VtZoKNYD+XUgeqFxbtSWq216ca+h0hxIAQ3x74EPtCriypYBZ6qBqL Z9MikA8MCUrezQc+luBu1LuBzM2vsvmjm3OfgPYnUxRt1+OV04hbh3wrgrjvXosPO3Zw4I569Z8r1 9DHGKPVEua2zGuYLw4eHGP7AsiStyyW//yC9Y+H6MobQc66kp8RA9CACFWai0vFbg2zOt8mTtBl20 vzqVZrQlS7hmmYSBpZ9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRw5g-00CchL-1b; Fri, 04 Aug 2023 14:47:44 +0000 Received: from mail-vi1eur02on20628.outbound.protection.outlook.com ([2a01:111:f400:fe16::628] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRw5c-00Ccg5-21; Fri, 04 Aug 2023 14:47:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kycI4w915hlNrI26AiieVaSQRW25dNb7DAq2d35oyCjJd8hzrlpdi9U0echtNAEAGWLOuPGJiNH0TJoxLPja2C15zkdUKFckPUtSB02InNUnijm2C2JTRD0TXZdNohbx2DNvoH+g75tjpgU9jE+Y7BlVVjY4MJjLDZ3teptX26AYrW0BCKTx9zo+OYxVQ/bQjJuM5HxNtehzlIUxHpF0gCq54wanbIvHsLnsK66CAPq9ZL4wNGaUuB+n+Htf3Vjc9Bg1mfD/v5wRq5daGQ0g5QwJOSc525cwCj77Lvv1Kj2qke5mKdGAKgX9h+NGLQ2D2D4d5SThoSFMgro6x2K2vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=g7PCIZr7xnTTm/OGx58lZL32KK8CrwjGpq5TlHRlB2Q=; b=lSFNJocEf2Ihog4b9CLlptqgE7e3Q4VIlA9pIIlpjdtzDpAb4s1yTlVG/BmMz9KETMlRCxZ0azpqbeN1tnd76eXFWOSFEiTxGxkkpBugJmImXLQO0Ftvogk6iEy9FNzXi6+Q9VLtJYcEJlG3VVsF5TaixwPrFj7dGNL9P5JbWbB2mDirx9qmJk3QG3KH6HgdwJ9E86qRP+jvl4oJenJ5BdGVEz2oKA/ekpaB/gtJkuLkb069JLJZIve6kvzG4UV8IW9v6lsWhQbSsrQG5Xe1V9O9o1YalohmiMAlo2b3uObRA68UX6gqQ+GIsF9mDCX7t4IGn72gM+otU7TQJaKujQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g7PCIZr7xnTTm/OGx58lZL32KK8CrwjGpq5TlHRlB2Q=; b=jgh+b5vz1A5MFE6OyoyFTXMhmAGmcWhtt3KHF/8+WqD5nKkCd8kAYWxfzcq9EzdkoD1SZlc8b/YG1cPxLYJbUodTAWjAcg8o9hR7BwjIaaxMpaRhh6X2eIhcgSFdPVUXvxSLOj1KVZm8fP/BtP2VLFg86CFpJLFBdyhHHt2iJEs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by DB8PR04MB7164.eurprd04.prod.outlook.com (2603:10a6:10:129::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.47; Fri, 4 Aug 2023 14:47:33 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::d4ee:8daa:92f4:9671]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::d4ee:8daa:92f4:9671%3]) with mapi id 15.20.6631.046; Fri, 4 Aug 2023 14:47:33 +0000 From: Shenwei Wang To: Marc Kleine-Budde , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Shawn Guo , Sascha Hauer , Neil Armstrong , Kevin Hilman , Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Jerome Brunet , Martin Blumenstingl , Bhupesh Sharma , Nobuhiro Iwamatsu , Simon Horman , Andrew Halaney , Bartosz Golaszewski , Shenwei Wang , Wong Vee Khee , Revanth Kumar Uppala , Jochen Henneberg , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, imx@lists.linux.dev Subject: [PATCH v4 net-next 0/2] update stmmac fix_mac_speed Date: Fri, 4 Aug 2023 09:46:27 -0500 Message-Id: <20230804144629.358455-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0183.namprd13.prod.outlook.com (2603:10b6:a03:2c3::8) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|DB8PR04MB7164:EE_ X-MS-Office365-Filtering-Correlation-Id: a99dd553-c584-4e61-1e6a-08db94f9bc98 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6RHEvYUpH3vQGwlKzQsn5GMhpPBxtAHnSzxV7FeVzvS6NVhpkujt3Hzz3HX202u2JGcRSo9zPDL05CGzEX2joEJYFArGchTHTDdp8z8aZs0wsYQ+0ZV3bDo/iS490/+q4SiADCCk+5SnSy/uxVHRUDN+KwwV3pHuPBis5PUdGGItBBEqpq+6XCLqS0dQqYKi5DTlndsosnlkiuXk1qoMegnbXWDwjuHM2VkkyaT6YfXXjhH91oioh9Bz2ICQA152pNqFxg+LgULYF7Fe+hN818SA2VRBLwKgbSosjHgnssjii7oExuW+xr32XRiv1At7BjHRmF3G+F1GQ9EL2fY+8p1KOwYORLRQCkIh/IPIHYrmE/44h9StVPufiCRbW6dNIbgE73zrPQLdpjuFHfb+3K9EfENEo1gjCfbrPRj1TftGneeBAWnxFHXItSCG2XvcIV67K1/SS7mQFilYZ9OGDkfF5c9FVTfKgaQcywUffuaBBMsGZz5fzGYdwKil/qfdtcvhgfbmrbvqrQznIMfKfyxjvLCtm0JZfsxqdfx6Lshvffl5u+2YUPIVw1srDMHAPzZCPHoobc2pifLC20jJUjGZL+7GLKvtL1sHBj6XdX3Jkm7evT7epfQ1s9BioMr9tObidPo/WAb77Hzxm5PP6g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(39860400002)(136003)(376002)(366004)(451199021)(1800799003)(186006)(2616005)(1076003)(83380400001)(55236004)(26005)(6506007)(8676002)(316002)(66556008)(2906002)(5660300002)(66946007)(66476007)(4326008)(44832011)(7416002)(41300700001)(8936002)(6486002)(7406005)(6512007)(6666004)(54906003)(52116002)(478600001)(110136005)(921005)(38350700002)(38100700002)(86362001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 92uk+Mj6qX4LxxSNJ70jkXJiwKb+EUAphswRKqjHe3ZFi3VdQ10fq9rTdTMcmKbhobiBLyWCDVHiL/wKcH+pskYfiZwWh5aYiWZq96u5LP3iNOA4M3VtSULNrb+lTp8yeBxggIxUIZSWCigqz+OEtHkq2dmaVBp4Y33Llkixj1UaZ2pMepNSJNyPXOTWGIbMPhnbJeJHyIbNcQnEm7rB4n9yRF13rDziWs1X8GaL2dpEqjWczJQgrOFkQqoGJkt5PCfm84GcWx4zbrr/jOLt6mM55IpDlMkxtZMH69+z5kF9jhnC0okCLetIz66q7+Hl0Cq8lNWAv3mgCqjJR7yYmoNtuAorh4drjBbl2A3gkAKXnhrVrl/7RpQ9vutk4Tl81zaSiHnf0zcD+v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4zrAZkHG3Z7WdCyV5FmEjt50Nbg9iC6E/El+OSl32ml9BizD+ADloWyqkKR2dzBNMxutQfA7xExqwrClwXrmuKkud7P5OU8B9KD+QURdfQX2k6l41llt8+hU20hD0eHcE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a99dd553-c584-4e61-1e6a-08db94f9bc98 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2023 14:47:33.6944 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H4/hRFLoIT/Kkft/V5XtlsaUHV7Hp2XfMhgG3+pFBlsJ/d1mEML0E0m/uo6wJJxLRTA88VXWlVdUS4PpMAmoMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7164 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230804_074740_686143_DD1374DD X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Changes in V4: - Keep the 'unsigned int' type specifier in the fix_mac_speed function declarations. - Move imx93_dwmac_fix_mac_speed into the SoC specific ops. - Use a read back to replace the wmb() instruction. - Correct the target to 'net-next'. Changes in V3: - fixed the build errors reported by 'kernel test robot'. - Only perform clock pause in RGMII fixed-link usecase. Changes in V2: - Call fix_mac_speed() with new mode parameter added. - reorg the function of imx_dwmac_fix_speed_mx93 by using the mode parameter. Shenwei Wang (2): net: stmmac: add new mode parameter for fix_mac_speed net: stmmac: dwmac-imx: pause the TXC clock in fixed-link .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 45 ++++++++++++++++++- .../stmicro/stmmac/dwmac-intel-plat.c | 4 +- .../ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-meson.c | 2 +- .../stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- .../ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +- .../ethernet/stmicro/stmmac/dwmac-starfive.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 2 +- .../ethernet/stmicro/stmmac/dwmac-visconti.c | 2 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- include/linux/stmmac.h | 2 +- 13 files changed, 57 insertions(+), 14 deletions(-) --- 2.34.1