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: 12706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1207267vqo; Thu, 27 Jul 2023 09:10:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFLGYXhHlcHmL1xTDfd08oJ+27J0rm7FM/gSf5ek0kAHVbmoVriETQNlgU5UI8pOJpA+TE7 X-Received: by 2002:a17:902:efd6:b0:1bb:8c24:8396 with SMTP id ja22-20020a170902efd600b001bb8c248396mr4516273plb.52.1690474252507; Thu, 27 Jul 2023 09:10:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690474252; cv=pass; d=google.com; s=arc-20160816; b=BwbhKNn5iILJEBsCNESz4zJRtn9P5f4W31H0MLO9G2di1r1Oqh6twye1RV70/Fdrba JX42XolEB7uWG7Qbl2fgBY9kbiL8oT1NZSJnghDldB5M9GyTqBfVeDS5pyCkyNzI8YVo 70xsHNoCcKWh0Go3fXccBdKgXKZk8q/jKor7V4EL20R8qpaAb9Y6lIfBQ8SwwQ/fPKjm wFeyHhDVHbu1yR15z6NEt8CiKM57dP6edJ83SWUVlN3KLOhGEWAAJyGxwqQHdM6DDoJH ambjc1KePgK4qnJOn1HF0zJFGYPf+5jU6L4v5TYiR3nZ4hw58Fn9BtcAZHJYAZVhbwYx YFwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=kbOqT2Su39riI0S0edFd0Cg/WCJk8/Twy8uszvUausM=; fh=KRX/stkHHd/uhbQHZRv9YEDGJRXCPYJTMbLTMapZ4Hw=; b=TVRCyc2k1ZC7EKesVxiNy8CyC8JLR1n+qCZrQKdutGRYzKSRtCa0VI5rg90ZLwoaxM /iDGCCrz7wSAwDlnicSPjHSCdfta6eWxz0u+NtoKmPIbIKsB31ZSuA9iG0/ABYeVnbiQ TpvcGoAkjdYLDS4gBY0An4ASsedbD+hvTBn5lNhFpLzvdvRqkezqrsmLLtWyP4U1O+9e IFIhMdDcLmrQVVl/yfsSUST+kTz7VDNJnh/XhAnMolm1jSDp5V4wLspZDmgIImtN05MV mgBbl2l4dJF0Xfn12NnGDkCEiN+sAII4kkbSplhjlBJWZwOLNC8t7acLSbTXcuwI1wVt ICWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Qv6Ncj2d; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a170902ac9700b001b8a6bf59cfsi1483396plr.378.2023.07.27.09.10.39; Thu, 27 Jul 2023 09:10:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Qv6Ncj2d; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234579AbjG0PZf (ORCPT + 99 others); Thu, 27 Jul 2023 11:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234553AbjG0PZd (ORCPT ); Thu, 27 Jul 2023 11:25:33 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2050.outbound.protection.outlook.com [40.107.20.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 515E01FF2; Thu, 27 Jul 2023 08:25:31 -0700 (PDT) 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/uo1ZDe56M8iFt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gCyBVm1X453mW/ibEkB62kJ926KHGoohOC7Xfohij9AkoUFOF+doqevImTxw06hCP6jGJnKM8wJQuZSXza0Ehhc9zm42uuT5EUy/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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772590729639884144 X-GMAIL-MSGID: 1772590729639884144 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