Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3514767pxf; Mon, 15 Mar 2021 11:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3lTGB3HQuhLqEpfDSviZ/7XSnqLSZIk7wjdNQ4NEkWYYyUYcI5wO4pBvaThrnDudZnVov X-Received: by 2002:a17:906:1182:: with SMTP id n2mr25557991eja.234.1615832067526; Mon, 15 Mar 2021 11:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832067; cv=none; d=google.com; s=arc-20160816; b=r//1XpD0S7KcCpzVkIBG/1+MTRbysOD9ZvZuhUriyDbNPY4rpk5C3GhsLbxU7S3qw0 jgFv5zvTS+IsjOgUy5YGzRv6LdrRON9OFxLxQg5XFxezZ/0YVIvT41yccWT412h1qsHU OwkdWH0CSWKkpuIiC8vXJVaGxwPjNVpde8S4ciMVlJPPnGwjkXNOcAtFH3BY6KIO2pPE 3UQwWors0HCsVQVz8Q1iwykHwUHPNHFzYjkBS93qGO+4sFYb883jKQSbG2bcSnUpH/VJ i/7lK5Ke+lBx3gDP+HZjc+r/VuKP9yXfHVvN+RLNIgOO2XlNWxidvNUGCuYTqoRGC65e o+8Q== 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=+xGluE9G0BWimxBwKxuU/AtkrTMhN7jmVAVRObnrZUk=; b=lL3mMwmOI7c1E45wkFhzEdskMygOubsm+rZaaR0vkDlRp8IYQhsfcuDVH/Kx9186u2 0ZMFnOEE8PNoPenWOHMQSj0873mv5AAmBsLNoQ1H2DdOt0zt/FN5IDpYYKP9oFk6bKPi 2Bm/9qe9jkciKObA07lI5sPrph9fgzK/5YuwcceZ1qGmY/OS3UED9G62yoXvan5M+EDa NeNSny7WWfFL4Rd56wLPNcCF0jSLgUmREGjV/5JZJ9eRv01cXO1UzDk16fU4VcElm5h8 U761FU4pmEUIbuy6xLl0PZ5k81222tAuj+c6ZCnXQ9E8YkLPahuef+SM3UEgh2XUT+dL +iPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="f0aMI/q5"; 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 u18si11045831ejb.504.2021.03.15.11.14.04; Mon, 15 Mar 2021 11:14:27 -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="f0aMI/q5"; 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 S236476AbhCOONG (ORCPT + 99 others); Mon, 15 Mar 2021 10:13:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:37522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbhCON7B (ORCPT ); Mon, 15 Mar 2021 09:59:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B34ED64EF3; Mon, 15 Mar 2021 13:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816724; bh=9ePwYnwhBKuyVuujznYnndoTArbDbP4WcimtpsYv5tE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f0aMI/q5p53TB3G69KdF7M0Rq2WB1rQEhqaENTgt7aSGBTWzoMrD8gArnBU+L5ujP 6kBqc12R129+rQjrhbUgw6bGYIxWGFThB22FL530yg2jHkaIdUAFgrrRbx2ZWDxfgx zdTcazBC14ISiVkCNWJ6EzLhraW0o1w/SCzoUZi4= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joakim Zhang , Jakub Kicinski Subject: [PATCH 4.19 029/120] net: stmmac: stop each tx channel independently Date: Mon, 15 Mar 2021 14:56:20 +0100 Message-Id: <20210315135720.945138828@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135720.002213995@linuxfoundation.org> References: <20210315135720.002213995@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 @@ -63,10 +63,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)