Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4713735rwb; Mon, 31 Jul 2023 10:59:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcrTFOex/DQnDr0XuTg9XDq53jB9g2dgTFZeBfxDbTD04uU7hPMWR/6gNc2VziLR32Nj/f X-Received: by 2002:a05:6a21:3806:b0:13d:315f:26b7 with SMTP id yi6-20020a056a21380600b0013d315f26b7mr5452531pzb.1.1690826356620; Mon, 31 Jul 2023 10:59:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690826356; cv=pass; d=google.com; s=arc-20160816; b=P/JvZbiFV1Fi1taJZ32g+IVoBPJBhjabEh+V456CDKkfgtYhoeGD7zvkk0QeVNW2hp hJTXAOeIpd4J+MESid9G75N/Yndcd+J+6ZrAsX+oIftbai74xCCJjEWnaP0WOnZ9cHfi ewcS5O2yerjTeZtB2ETYpFQkqOElRJ8qcyGziZV7r9snDmJkZXSds2NkcWi/sqHa45wJ icAORMawbvOEI4u/HIqEpuXfcWWZjkxY+/Fbfty/pufOTt4cSnHskfdxh+nCNEdi3GTB SHfXwMdrHurgP39xsa46CwsOiwUjzmWhXmeMdKDjOxZbeEJttuUdPNPCTFeI0R9iXbuT uTow== 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=fDGmTrP/vi6PX7zWrra9P+c1wStIN1/iPet5V3AK6Ns=; fh=KRX/stkHHd/uhbQHZRv9YEDGJRXCPYJTMbLTMapZ4Hw=; b=0SuJpbIyV70Yiad9aXWAF9YJw7RJMs9+ehRxyo1lxsYJKuBJ36BnDTJaBhFkDiyS48 hZp9AJXRoc7oonYF6kNh1Sq2aKGZ53na6x18708JCP9G2X6TDIHe9a5VzaBglOrqkdcZ C7BY0giMTmx38R61E0Ryn8/U/7POYv5BpgSo3JD13mXIFiF70Uxc1TOjzi9itpkTdIqN cOCnCwH47lumn3HfjanHNeL0WLy8xTJ/47ZXI9B6HSgA43Hjqhc3JIwE7yuHm4Tx6XnP 3dq0xaqn4FwTeLJ8ZUq+2n3+8N/0Xar+FfbbGJrORwraQOSqXReF2Dx5HHhDS9zDlc8H 0rzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=cbnJ5gk2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a639701000000b00563d4175769si7423089pge.814.2023.07.31.10.59.04; Mon, 31 Jul 2023 10:59:16 -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=cbnJ5gk2; 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 S232167AbjGaQUU (ORCPT + 99 others); Mon, 31 Jul 2023 12:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbjGaQUR (ORCPT ); Mon, 31 Jul 2023 12:20:17 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2048.outbound.protection.outlook.com [40.107.105.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE82DA7; Mon, 31 Jul 2023 09:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ClwpKWaB1PvkqaPXyQGgDQ04TNvoZeJoK3S6Rftq5nX1VwlEpCwtgclhdJqBIJVWQdC2T4P45uvqgj82O/WQdMqj8L54Zd+J2GEymg5WSxMHEJzwTVe/r1tI1wl48cgHLy11eR+AQSmO+4frze73oGBVBr8KVlT+8lXs5Hs0+xBGHedtpt3AB8edUoBiAQl9hih/FmRm8SYj5ULLjPIgER9TYwiMe4HX/1PQs/nzkiw9g8NDQKGtLcifcJIblOpOguAFUaSQr0q4/DFckdBooA9yyMJvoW+i/fReR0v99G/etD7Ns/DGYAtneaNZhPnSQ9Db+uxwhPV6VKT1iJw5XA== 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=fDGmTrP/vi6PX7zWrra9P+c1wStIN1/iPet5V3AK6Ns=; b=MaHvRjnTWuyRg/3V7qHiAzDLDLmQbH3kgq3bPdQKL+R+Dzxc/Lvg6LK5rxMn1SWjff9dcYiWB5plupU2k19ivBEXK7kzoFG21HaYfFpVT2xAhmsWOCzCYyRIAMuK58q0nKvin7LDQSJL+e/Ch+I6eOJ/XLfiSq+Lqidjbp/j864VFfnbmgy3ewuwem95/GEMqkqojtbOCqfWCrRsyMm5uoQuVmwCuiPCM0c8oZLmC70jnUFrsc+J8GFd2ZlZYtSK/PYPnYhYXCjwFbHGz0VbPjnAruch2KM7YvkX6H0gDq3Y8iQD22vsPj6dUtMbbHGv1BcYdlXjKNhPh0xuSm/JRg== 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=fDGmTrP/vi6PX7zWrra9P+c1wStIN1/iPet5V3AK6Ns=; b=cbnJ5gk2CnqlXRqymTF2kRdt4xv0D9yO/d0ivYZowNT6oO30NBxbDvbQ/1nygKNMifrqu0pBwGpuVbajA7tn8uT7XP/zzE/jdc/8swsMUGx2kSVtGN0smOa9+iDe9VSwyc9Lh0o2wKZA2XMrAhxcESqK4u7phbsXtomErfSvYj8= 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 AS1PR04MB9237.eurprd04.prod.outlook.com (2603:10a6:20b:4d1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.43; Mon, 31 Jul 2023 16:20:14 +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.043; Mon, 31 Jul 2023 16:20:14 +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 v3 net 0/2] update stmmac fix_mac_speed Date: Mon, 31 Jul 2023 11:19:27 -0500 Message-Id: <20230731161929.2341584-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0177.namprd13.prod.outlook.com (2603:10b6:a03:2c7::32) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|AS1PR04MB9237:EE_ X-MS-Office365-Filtering-Correlation-Id: 15d00cbd-c558-4da4-90e2-08db91e20562 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o/fjkui/I3EC+imyDuVYUcThp/ipupJC5VuJw7zDVo2M/kgIJo7omMkPNhVXsUGh0ecxVTtavLb3rvOTSrZqTeNJPNCOuG+iZcqB1wQl/UUoSIN7A6tXLiQgy/bajQw4tJlMeToYB0Eq1MYzaxeLx2qXZjH0JEY65sljwpHdYC9ZOOpLGBtXGbaODCgrMYohxbt43Q2tHmv8HRqK9gWyx+sqaI3h1Pst1+8PcnO1o+0bPOYiSvXNnOW1umkiyZykMveGWh/U9GFBbTQ4BgDfCR15B9PXQwWyWEmbejnMOEpU3WXPWDBDOReQsgpk1OrbOOfD6yz6qb3fH8RE3xvty0HDwPrcrFU7kGTDp3hBdbgkFc4s/1M8L19quAmTCzTBiPdCXDm6XAWTPFPISOqW/WBtwdVUupC27I/eWIf0tsbxn2+6dm+EPWj8gs85YpLNT0hd++Pwxg5dUjzPxU8ABxrMRtnIE1c1Eqp30YO1NZb3LgbEB8iN2Kk3NEcHKtB9/8UP3/yqBxgugEfe8K+aW6OKSubAgreLAIMg7nnq167QMM3JtoWdjWE4oeDUUUFYkpLJyI1Rd1BaCWTg33WSYY52t/4JUz8iGMNMLHF0oBrPp1+74JGIY5ycljdjpMv6UQgbEmZ6VcCtvqjMSAQfNw== 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)(376002)(396003)(136003)(39860400002)(366004)(346002)(451199021)(6512007)(52116002)(6666004)(6486002)(186003)(83380400001)(2616005)(36756003)(86362001)(921005)(38350700002)(38100700002)(26005)(1076003)(6506007)(55236004)(5660300002)(41300700001)(8936002)(8676002)(66946007)(66476007)(66556008)(2906002)(7406005)(316002)(7416002)(478600001)(110136005)(54906003)(4326008)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cEJqXDrb+3yaikgEMJCxGRXkR4Cl6j3JCqdSLuBsQBuobb7YGZp++xS/6hC8?= =?us-ascii?Q?dN0bMwYDeMia0S+03z+ET5fuXkLHCGmDqIyyJHZyM0HfHMIjHbXSB5naFfBP?= =?us-ascii?Q?SPYRSjdDDBdCWbibpMz3AeKzAUh5TXJp4/ggkr3Tm/iQ8eXXf/D+k5Boiphp?= =?us-ascii?Q?qKh4cfq7tnYDSwbhtLBP14CQfRtoQUcWMcNaBvm3IWqPu+Ag99LgZjI99viS?= =?us-ascii?Q?xAN5x4E2hAJC+0lcJ6wTstBB+G9GMdJFixkR0vpgF+cODt2X+1J6NIdbPvfs?= =?us-ascii?Q?PBkNlbNvloBYhJeXtY14askmBhRagjxTUzaesF5/ww8nRlyNs1U6g70aox01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Er3dJfb9kjA6dVEUiRvOUZRxBVs5?= =?us-ascii?Q?LdTdmK643wJo7BZEULjo3t0dh4lUP0Kdgm5+UpZNKP3EgMemTetUKBpEHyRr?= =?us-ascii?Q?UXtjSQVM5zH57DGb/JTClIKLQeGUap+LYG/qlpgBmiKnuOzcBFo8b6dZuYDq?= =?us-ascii?Q?UZNZdvaVPmMzJw+bWmvzpCigjxYliJ3/HojyTAnf2uMVLANALnX3tnIIiGPc?= =?us-ascii?Q?dyesiE0i1AvC+rweKxsCumJf5MUOuwywoEIgUSiefoi6xrKpiZOwJebXA3cj?= =?us-ascii?Q?8TGrtpjKA2miSMPfawJrpxlvbhEJYFlcsA3m8wEsNfqSZHSlEj+9bGv9Ev4W?= =?us-ascii?Q?QT0jq4FY2I0Fmq2J2LiBbOWU1tjCxU6fBoFKVVdI?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15d00cbd-c558-4da4-90e2-08db91e20562 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2023 16:20:14.4933 (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: ynztgGIy2YQPtfbEZaBjAqwWyvwCrBaw0G9nLAnVtAuHCVCrba27h1QBwd7nAEpls5hy01qX79qw1xXPU71j1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9237 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_BLOCKED, 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 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 | 44 ++++++++++++++++++- .../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, 56 insertions(+), 14 deletions(-) -- 2.34.1