From patchwork Thu Jul 27 15:25:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13330316 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 1AE20C001DC for ; Thu, 27 Jul 2023 15:40:25 +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=hTxyLVfChJ6WLaYXlp4UnACb68fpQvs0H+V82aJlN9c=; b=j/xAGWMFnmzSlV 3DuhI3QI64LSnQEHNn9X/nBe2c53qkqZL0XDZnMh92OT4IRWI8I7lMfdo9BAukMBdv9Y4cRCBDZ7l Z9x+COoXTUXRm/4JOJrcLjnPbYCpyCEWsKs1ImGKClp7rkDII4Xzi+ZewW4yCYnbrgsQ81/x5Ebt0 0Itun8eRdOs4VUF2DeaE9UKv+SRTfKvQEXwPgicpLCsDeJVsIWvxpAhyE7buyno8vW/IubNOectSK 7lp2s7oHy8dnhv9eCNKWTps3Z5MYQ5SyrlTeQPHRuBC/V6sfyAZrF0mIAWKErlV8y+U/fca/1niDH 9YqqwgYTDY2KMtakMtKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP35t-00G1A1-03; Thu, 27 Jul 2023 15:40:01 +0000 Received: from mail-vi1eur04on061b.outbound.protection.outlook.com ([2a01:111:f400:fe0e::61b] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP35p-00G15O-01; Thu, 27 Jul 2023 15:39:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fEFs/CrNIhrqcMnE7T9c/346RQsmZbXZMdbJBYRoJ4MJRcmJQT7Aw5DLVmsWe5YWwLrrKoby/ru6fSfBqVOE28ISCxDsvG1itPT9iBJFfP/yiONFF194m2IAttKqlE2PRTK1PuZZfnHtTtfTbIOxTM3mLZwJ4q94UnQQxRwMdXcbPlOrJF0p+QFlt50YA6I0vkNRV9mXdqPpA6pB2Q+K43U0/VhK2n9g8ql5BlLONdUguXvWHRXBlagO6stvFRF+blyshrcGjcKCY1RLZLWe1ZpoLeLj7GtEnVlM9WmYAZoHVUYbcSek0dT65L0wW3WxpYqSB3JkPI7HOuZ7OmdKkQ== 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=kbOqT2Su39riI0S0edFd0Cg/WCJk8/Twy8uszvUausM=; b=GLw4xwDGQvBJsFrIZPUMW5EJr/O94PCGHZDeG1IDoL9zDwKq1/ESG8b/RCxROytdGeoDVWMrUL7O9yONJ78to8YCP20wKhEn140uO4noeNLTzPGn3tSpkFGKLB9k7ne6RQSL0niN4XqcWzIQjO7146sGl8/QO6cID0YY43mEhQnnmvEs/LyAYsHhihS0GRXoIaAhdwUpst4sX0Q5/+22Tyo4uT1vAokDEuwb1UKO86CdRUdLbbvq9S/1NJNdNPjvpm7mxd2y5NTZxFAx35P9sC/U7aMFY74YyHfpsajdo3HoH18NJrgZy8QFoM/wcJ4G51gq5Vujl/wYDlhozkmfYA== 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=kbOqT2Su39riI0S0edFd0Cg/WCJk8/Twy8uszvUausM=; b=Qv6Ncj2dcAmRAIymd/RQL2gtDxS9x6ONGS8Icp6iQjTcfdyx/BNm1rqT7TT9pnIRXc5s/0sLW27YoJVW4wb+G3Y8OdpMMHUCyUWAGAsRYVwZSQ05uI2iWuY5OqV3WDVGssuf9Cz6wpPg7u6tK/07USsWBeUtTEpeEFb/b+65Iic= 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 AM9PR04MB8257.eurprd04.prod.outlook.com (2603:10a6:20b:3b6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Thu, 27 Jul 2023 15:25:25 +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.026; Thu, 27 Jul 2023 15:25:25 +0000 From: Shenwei Wang To: 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 v2 net 0/2] update stmmac fix_mac_speed Date: Thu, 27 Jul 2023 10:25:01 -0500 Message-Id: <20230727152503.2199550-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR05CA0078.namprd05.prod.outlook.com (2603:10b6:a03:332::23) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|AM9PR04MB8257:EE_ X-MS-Office365-Filtering-Correlation-Id: 509b706f-c2c2-4b69-8272-08db8eb5b361 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n8oiCNBeuPZ+2n+MbtzSgbSweVGP5i8h0AxMtNR6TZc3ZGshv1dp1BIfipx5VM/0Kl0q115YfPBe7XTmsJJjc7Ov0d1XiPE1GB+CtbCZMyXmV7OLOeYp7B4Vz8V6Ub8IKH3RCDJ5lxjsrHome/Jzo3ZbNvBAlxzpttSyXx1EAfPC4KRREyrd+n3NpkjIij36cHWKPy1vZClrElV39jNXE6bm9AfZw6gNBzliJGkbKzXYTb1j6lXJpiS2w1OuceXA9zdwjwr9bcFcInD5v/Fk2pnsC2pdVEJ3UuOcLE6Apgs04U3YQQRpgxDiTjkehQl863RPAkzdQITNVRnZXP9BX9EQ1/FgYraxR+z+6JfEWJtbgWyaPeUWxhkQnXA7xP7AFj+Ft/CnU5/25COlPQOqvUGXOKpMF0i8J7ZEiqoavQi2Pc8wbyjskO4PHvx/+R8DfxBR5AHlssJl+HV1sNsnLRP+1wtciPbCO3up0ijD5wgxWcycjiwHcTpCvyUOPlh+UYk+PkEuOOKYU9ya0KuWiIhNtTAYBrZh51PfW5g1Dj3iEccn6ZWA4vHe8egXkhI54QUP97KulcNuJxKRqOGSV/MFVKwO5yhEQLS5kfk5hdsLyJwB2iVOHZLaG7gvmFKkIobt46RaaLplUQK5G6MCHQ== 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)(39860400002)(376002)(366004)(346002)(396003)(136003)(451199021)(316002)(2906002)(8676002)(8936002)(7416002)(7406005)(5660300002)(4744005)(41300700001)(44832011)(36756003)(86362001)(6506007)(26005)(6512007)(1076003)(55236004)(6666004)(921005)(478600001)(52116002)(6486002)(83380400001)(186003)(2616005)(4326008)(66476007)(38350700002)(66556008)(38100700002)(54906003)(110136005)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wtt0Qa0kM+kW+VgqZq6serE2edetp0yZfxyGk2RtWXqSvrIs4BAxMrl4VDvp0c2cHYrgw56PAbrPoDr20QM2Ezxb4S9nldoiLAiC+S2DdKYvDvpuGoCLMijJPzI4Zx/78kgOo7t7a+Qc0DG5rauYA6wxrfgvcRp6P8LKQp5SIC1onL4LTg3SE8Vuzx98YFjcD3U9XxSNnTDa08llJaWp5HpyXRDIOT1ZNpwOHyBLS959PObTDvd10g5UMQr+9bXLydtVfRizk8Ag1yJ3P8iq6rF/kxpw4ghWWDxPlgRuf4/uo1ZDe56M8iFtSbhSq/9nyqid+g7bFAb8DAe6mCjQFAtcve5NHpdkLQ19Zz1QQC4Dw/YpVIMXEzUtjAqlSH+/hCakiH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9zm42uuT5EUy/aH2flnSYYelPDGuzsBba5RLrGHbsfDe1ZcrFOXeReUbdfwPDHLqt+IWg38NiJuejbKyNS0V7RNWoM02jW/fZMu/QEhUtZIy5YdEipF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 509b706f-c2c2-4b69-8272-08db8eb5b361 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2023 15:25:25.5825 (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: zIGOWBakiGGay+uYSNrAZCKK3y0FOA5QOnkD453oxHHJNOKNFYnOg9soBXi1qEMH+tdDWDqJbLoTOO9yK08bxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8257 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_083957_097808_C758E850 X-CRM114-Status: UNSURE ( 7.20 ) 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 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 .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 47 ++++++++++++++++++- .../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 +- .../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 +- 10 files changed, 55 insertions(+), 10 deletions(-) --- 2.34.1