Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3514947pxf; Mon, 15 Mar 2021 11:14:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym2muxqugUsD6Pf1VazSkpQmjI6v10m7xjsYMS+suWBdt6MYBz0xO243LXmHJJ0hiVmEbB X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr32552396edc.367.1615832082267; Mon, 15 Mar 2021 11:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832082; cv=none; d=google.com; s=arc-20160816; b=Y2ieq6H9oUrjzaEUQY9UQr+4W5U8yzgsUP62wk/Tj0HM6x6WX9W40MwpbGZkW6sbv9 BAxlPiiKbWTMXWt9SOCzDrDW+FkX+HXW946u/AqcQX1myp2Rm5bnrLSNNvRJnHGqTrXW w+oX+lIpgfueHvGE4jrcfDBoYRgqN3U7sS3umX3as4AMnD488CfAF16sdAO5/6vvxRXd zohn18f3y0wEymq0ledmoNq0tPvu5uW3zwDU4GpGaFDpMYDrHgJvw5Dv5w//eWbjCmk2 apORP54NWQeclsuaeA101pfTf6rwsoK/EbNfy2IY0VG2DGowc3AVvLb5FGoFIGLN9CE2 5AUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=J+OYT01pgnw1y3FEDRWgXIQlFDvrBHnjxP87GMQUHE4=; b=kOlRNTpgMEh3GPNZcfcRDRfDQQ7bx3RRJL4JMlIxmays7/AcPvDnQsZ1RzTDE/6OiX CJ0OGdfdn1TqvqGI8uDhCfNzi3ALTH3vcMhHIywdlJs9LivFi9klSyY3p6yrKnidBtId j6tM5Yyawl5kiNCXeHdtqjWM1PLCyJvoRKvzbhkJaw+bGHGksvFUNFIzWOU+z/xfaxNH lCgNNi6L6PM6vx5VXNknJwp21h2UMb6zcusTursaR9Wvq6QDD6Lbg1WiMhIL9Bv+VJO7 pPk4NtZrEc68a15gijPTOMHy8xglQ+Respj+HwoIRzTYxx4HKrMPDLEhu1uZGNi2C5BV SpLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wkfdEbXj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si11509769edp.527.2021.03.15.11.14.20; Mon, 15 Mar 2021 11:14:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wkfdEbXj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236151AbhCOOMb (ORCPT + 99 others); Mon, 15 Mar 2021 10:12:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:38284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbhCON6g (ORCPT ); Mon, 15 Mar 2021 09:58:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 33DA164F13; Mon, 15 Mar 2021 13:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816705; bh=1Y5FO9BvAPAx2ArE/6bv6jyWdZ4YW6aGlxWmcnfu9lM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wkfdEbXj6VklzzXPKdyn1g9eqnepi55RWozfl6ucNx8mkINGZmfSceoif47YB6+QV UW5wf7EkeausjoM7ugBwrmpLQjSdx5wbhlbrK/AseVwngGLTZWAFw/t6RECd6qoL4h jzL6VNsLZjB1vyRlh/PJbgeqy5X3rTQ3Vp8LkFsY= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joakim Zhang , Jakub Kicinski Subject: [PATCH 5.10 066/290] net: stmmac: stop each tx channel independently Date: Mon, 15 Mar 2021 14:52:39 +0100 Message-Id: <20210315135544.139777380@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Joakim Zhang commit a3e860a83397bf761ec1128a3f0ba186445992c6 upstream. If clear GMAC_CONFIG_TE bit, it would stop all tx channels, but users may only want to stop specific tx channel. Fixes: 48863ce5940f ("stmmac: add DMA support for GMAC 4.xx") Signed-off-by: Joakim Zhang Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 4 ---- 1 file changed, 4 deletions(-) --- 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 *io 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)