Message ID | 20210112113345.12937-3-qiangqing.zhang@nxp.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <netdev-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DFEAC433E0 for <netdev@archiver.kernel.org>; Tue, 12 Jan 2021 11:36:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE4E3223C8 for <netdev@archiver.kernel.org>; Tue, 12 Jan 2021 11:36:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729523AbhALLf0 (ORCPT <rfc822;netdev@archiver.kernel.org>); Tue, 12 Jan 2021 06:35:26 -0500 Received: from mail-eopbgr20080.outbound.protection.outlook.com ([40.107.2.80]:62622 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728953AbhALLfY (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 12 Jan 2021 06:35:24 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kjYymXVi2IlfhYrwRzPQmfo+MtIgQgoEoP9WooJrCo+tQUkIf0VE+kVaqA6b3XnhFtbZElBu8iKCAsJCN6AWaxmMvbco/WhedgXWz5LBKo8CMjfHojFX6ufag01Ws2DZJMU2mUzdoYOXLdtVy21H7Axy2PO3sfWqzHaTMdJ62TyOuFC5zQVvgJ2nuuqIiaQPtyfznD9pT3VWRHmh+f0TTOCEelhb1/sbhFjwU5K3fNbgiBbIjWx6RwBrdDn0HNyKooAku5X7ULRDqHCh5Y8/kdlFIxj7YMICsmXw+N/sGpS6AT1V9MfUr8ij0/yleIALXAKIYaMHC0cLvruchTt+yA== 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-SenderADCheck; bh=R5fBNq31F/BLnxHV8u15mka/jr/zcYzW7V2Yhf2HFFw=; b=TJnSydNNBIdy/HZqCUEYrdzVDS25Kss0KJnUXDTVIyVLrFY+wpfMZLCsu8QyMvLTogsypdAw+83cnvnD3HOF4U7vRlGujNyZ/pmf/fipb5f3U/ZFKX/1bo/4n4T4/z8bavhQtKTaR28RkTLhEsgrScBfb6zWmQ7x29FX4kmvmR+oqaXkD15FAxhSxXyuzAuHiF9WnqJ26JP0JrRbf9C3uQGkUa9vK+DYIhx3XILkF6QNmNji1pmlhv2nxDXgX7Qe5kE16bWcvFghB8Mh0B8llSBwXd/QFtLwGFMwRKWME9Ws09I3V3BnOBX5JPObNJxRIr890QqFv8drY371Fn362g== 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=R5fBNq31F/BLnxHV8u15mka/jr/zcYzW7V2Yhf2HFFw=; b=SRzHckXKFHeW2qE9kqzoxEYijgotXK2/+tQu0S/xoVDnruNIA2//mrQ8QsJSLl+h46ohMCP2tgnAYVzvZXlwTM/bg4Mvw7PgGcoy8T8soW+ijTVWpN/k+5fQQomXewWwWxakK/6S5IBLU8b/eM7XcL8DXjwXvTSQb0vCCwX5aao= Authentication-Results: st.com; dkim=none (message not signed) header.d=none;st.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DBBPR04MB6139.eurprd04.prod.outlook.com (2603:10a6:10:ca::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.9; Tue, 12 Jan 2021 11:34:18 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%5]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 11:34:17 +0000 From: Joakim Zhang <qiangqing.zhang@nxp.com> To: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-imx@nxp.com, andrew@lunn.ch, f.fainelli@gmail.com Subject: [PATCH V2 net 2/6] net: stmmac: stop each tx channel independently Date: Tue, 12 Jan 2021 19:33:41 +0800 Message-Id: <20210112113345.12937-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210112113345.12937-1-qiangqing.zhang@nxp.com> References: <20210112113345.12937-1-qiangqing.zhang@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 12 Jan 2021 11:34:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ca2250c5-7185-4a9a-640a-08d8b6edff51 X-MS-TrafficTypeDiagnostic: DBBPR04MB6139: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR04MB6139FFB0366D5AD83634757CE6AA0@DBBPR04MB6139.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5SEONEp+QiCVR6DBZiMZ4i9Y5h7EGOUJw1jruGmnDZWuMkwa1oNNuf1L1CeSlSL2CmCme9dAxIjhMdr/8owq5xee5ZxoZX5wNWt0Z/Mtm9Uva+9mvrEFZ8yfLGGMJrIh3QSLRmZ4B19R7Qtjc0dGhuvLzHT2nNmub5aWbOg+HNwhGAfu5bK/CQ2bjdU+91f737lfNa2Pw54iDBMGQRvxWDaJ+9BsPRCGxNxggC9qo8ahUOvf0a99a0ayVnuwqGjCkNrndHxx3QafxGjnSUNTJnl2gBv83hdQUf/C1Tb2YQc4oxgUBvXsPrDpohm5r5Dh2Qf0EEUQpYztFvdIElPwD8Mf3c1M1UMcmaRFYc/LA03t9qJt+2ftbZZvWRWsWfjeLFTvccs/oYLzVWa7ohrfgjWdGXgSYN8fkKbVZSCjmwahRMI8soMgkRz/2gPoeOo6hpdJ8Zvafc6o9NnhqYZchg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(69590400011)(66946007)(8936002)(26005)(8676002)(6666004)(66556008)(66476007)(1076003)(186003)(2616005)(6506007)(498600001)(83380400001)(6512007)(16526019)(956004)(2906002)(86362001)(4744005)(36756003)(6486002)(4326008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/Wpq9fJR1hlJDt0pE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 11:34:17.9615 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: ca2250c5-7185-4a9a-640a-08d8b6edff51 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lnc1FI69Z7Drgr6BtqnxisW2GR1QMVwgoH9ML8nvsKk9HfbJUxxztOdlyvGkoRlCkpkIV7aVX38U/CqPNIvEJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB6139 Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
ethernet: fixes for stmmac driver
|
expand
|
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c index 0b4ee2dbb691..71e50751ef2d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c @@ -53,10 +53,6 @@ void dwmac4_dma_stop_tx(void __iomem *ioaddr, u32 chan) value &= ~DMA_CONTROL_ST; writel(value, ioaddr + DMA_CHAN_TX_CONTROL(chan)); - - value = readl(ioaddr + GMAC_CONFIG); - value &= ~GMAC_CONFIG_TE; - writel(value, ioaddr + GMAC_CONFIG); } void dwmac4_dma_start_rx(void __iomem *ioaddr, u32 chan)
If clear GMAC_CONFIG_TE bit, it would stop all tx channels, but users may only want to stop secific tx channel. Fixes: 48863ce5940f ("stmmac: add DMA support for GMAC 4.xx") Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 4 ---- 1 file changed, 4 deletions(-)