Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3524026pxf; Mon, 15 Mar 2021 11:28:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBe0GOWykmkhqhZ6XwSBPgXJyd2/oV0BmWKHCnYQJuUak5KtTcT62oXhLd0S50ZzqWRIok X-Received: by 2002:a05:6402:408:: with SMTP id q8mr30885046edv.201.1615832887893; Mon, 15 Mar 2021 11:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832887; cv=none; d=google.com; s=arc-20160816; b=MUOIpLxyBIW1Js3+jttG5/IMV8lUfrAGVZsSp3VYHf8m863gG/lXXLBCWPeAVR5+p2 pq7+aS26SScSHuU+gfNPDG20rROT3TTYM5JvgA3uJJ6i+79erkVxcHfftZj/7xa0RuN5 16Gv1nno8b6Hn27LrjHYPC4RCuv/lMTyK03t3eUD9fmFE/uHc8636AnZHLnO0b+WXtSE Gk1ARKv7IrZ/GvpgvgPyZNNCvbkwoAXj6rwuuNwNjdrjykRXvzsSJqNoLTI/oY1Vtxu1 ksIAgKpYcYgpXni7Y5VUshu0T7RNrkG+175t+ywjzWmmDZx6RBVJkiJam8tcJsGML3Qs LmpA== 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=fgUnLhRvAcniwwHfOUvjrS1sa+JXNGQxIFc51YtDnxDrZ+6eCVPUPGYG6l8/02mLwe v3ZZPQ8P25eE2rY++qNuYU+ciqtIGsC8ZHhzsoapteIJIEzzVIoF71LtCpI3jNaroK5L l+R1RZczfOnGHCEFJ5T66c8ZWAuVeUJOOq/XahZbTdfTJVDT0VtD4UGUPO+8ckbbPJ7T j3kH+zzZ1hZb/2jBQDU0ZXEQ/ZSR03iijps06GPal5e9/z4sAdbZ9MNnvH+INaGzmorL kr6wY3yYTI48WQwO1o8fnWCPbeaOAwQk5XkZKoysLEEEcqG1M/poyBZho7LkZnp83pEp 4bgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="rXL/O5iN"; 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 sa4si11039972ejb.662.2021.03.15.11.27.35; Mon, 15 Mar 2021 11:28:07 -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="rXL/O5iN"; 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 S235574AbhCOOae (ORCPT + 99 others); Mon, 15 Mar 2021 10:30:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbhCON6q (ORCPT ); Mon, 15 Mar 2021 09:58:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F032D64F09; Mon, 15 Mar 2021 13:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816714; bh=1Y5FO9BvAPAx2ArE/6bv6jyWdZ4YW6aGlxWmcnfu9lM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rXL/O5iNcnEseOSKHknOx3liiIEinW1kEFxn7nwrJSAeZcagNRfjUb/QLSy7l3NUY QAnLkWFGo0aKY2xgxTaMCsQv4VJg6E817ox4lk+COyfPDnyP7hAMACBCpFU+HTRg2c ZBZpf/7Ev8Rn0ODxPpd8zT+ukfgy9xNSMxsRUncc= 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.11 080/306] net: stmmac: stop each tx channel independently Date: Mon, 15 Mar 2021 14:52:23 +0100 Message-Id: <20210315135510.349640185@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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)