Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4445068ybg; Tue, 29 Oct 2019 07:17:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpbxzcW/RSv0ow25tqG60fBPf3QFWCct/Rlb5IwSlhtEAYGDbPyNymuqBwC2Zeq1pT8Y9/ X-Received: by 2002:a50:8969:: with SMTP id f38mr26120390edf.211.1572358634317; Tue, 29 Oct 2019 07:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572358634; cv=none; d=google.com; s=arc-20160816; b=ZQU9zcCSOGKeuGvVXW4dC91d72iBq3CU4dfydTU4R53XDGczTK6hEteBJC/pMMR8PK qvjCbAoA46BGn2Oo0gFHjx0bhAUMYBoCfq0WaWpkQbI2a4B9qHY8oJaNCWZFL8XZq26f zPaJyJ/LTCZTMmwTdQ3peb4p/OBZe8cLCbz00GFkeEDzQBCIPbiJZXQyZiA9SRqAW5AE Ey1hYA6yPGMpVDTpAYBEPG2p71CG27Bn+JFe88Sk1eFrQMTZ7W3hXHXGar1tfxjp67qd 3ryxtKARGnyezN8EVVIwBKBjvaW0R1jF8VsM7rC3tQz7Vl9jG0iFRP0nkn/RglI5ATLF tEdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=HeWZOme5/tLaN1eY6OgvaJQEfzTCy8GZIcK8cHLau30=; b=kdtap3Gn4CuJYdj7a0G7qFz1xDXqgwIv/vn4G5tsc6I/5mMRBnUmO8kdOlsgD+wrDg qemW2wBOoHgv0iK6ZBRoETB1aZ3v7mz4guu10kwxcksvM18ww+6rxK8D+O3yDxNVkXWZ 2TZG5qQqFl1eoD8IligXhHkTxnj7S1/HdJLAZxUb02gfm1tEJN4B4wsxPwYrwkSvSMNr DRL/+fxW5Zrk6YW1+bu1ADaR/7hHePi4dT4EZDEaHmjLHsAvS7kS2/4Hvqe7buuiwcjk 8yfmuVgAqgHOe3rEfKFXy8y1G9JC+L9OKkMEmvsdWrB+u/ykllbtIHpo4+52ZHpcj978 Gmqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=FKzhh9Xf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si7907089eju.56.2019.10.29.07.16.46; Tue, 29 Oct 2019 07:17:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=FKzhh9Xf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389157AbfJ2OPS (ORCPT + 99 others); Tue, 29 Oct 2019 10:15:18 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:53296 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728994AbfJ2OPR (ORCPT ); Tue, 29 Oct 2019 10:15:17 -0400 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 78CE1C0C32; Tue, 29 Oct 2019 14:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572358517; bh=DPNAHIwdStIvNykZvPNI9Q22maKuz31rS0G+68nojiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=FKzhh9XfLyFRKMTJwGSBUowf69G38pWGCD2i6vzV5yyKVyMCJkX27S/7ajlK3dj0M 1tococe0i9vDGtb6xTp8JHL5ensVzZD1dxRo5UXR05LOssiT0b5iU4iFIWO2/sb92b a1G3HmQe4z/pYolCfO6YjFW9RVc5OpLwDbpSFq85GINQD2DUUAtxYjcu7JoHT01dw+ I1L4WEutKThC2oRwCYrTq77tlpI68Dt0xN9+EX0Gmw6WiJ3OMsvP/XxDOWzv71Bd/f ONiDqYPIxXM/HPsJN7T4vPMBTQL/PpAO9BJSf1+fS4DhkVyy6/Rd23PBScOSEnK1QL RyX76SXfE00EQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 048CAA0075; Tue, 29 Oct 2019 14:15:15 +0000 (UTC) From: Jose Abreu To: netdev@vger.kernel.org Cc: Joao Pinto , Jose Abreu , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 6/9] net: stmmac: xgmac: Fix TSA selection Date: Tue, 29 Oct 2019 15:14:50 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When we change between Transmission Scheduling Algorithms, we need to clear previous values so that the new chosen algorithm is correctly selected. Fixes: ec6ea8e3eee9 ("net: stmmac: Add CBS support in XGMAC2") Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c index b58522b8f782..082f5ee9e525 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c @@ -224,6 +224,7 @@ static void dwxgmac2_config_cbs(struct mac_device_info *hw, writel(low_credit, ioaddr + XGMAC_MTL_TCx_LOCREDIT(queue)); value = readl(ioaddr + XGMAC_MTL_TCx_ETS_CONTROL(queue)); + value &= ~XGMAC_TSA; value |= XGMAC_CC | XGMAC_CBS; writel(value, ioaddr + XGMAC_MTL_TCx_ETS_CONTROL(queue)); } -- 2.7.4