Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp983098ybx; Thu, 31 Oct 2019 04:04:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTJxmgiPmZbCQe9pJmsaXXo7G2efmJjWEhSajEQTzgV0dvDLrexLeGTO8EQ3Z+hn9q+Stk X-Received: by 2002:aa7:da19:: with SMTP id r25mr5199863eds.143.1572519872785; Thu, 31 Oct 2019 04:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572519872; cv=none; d=google.com; s=arc-20160816; b=pxMheoU+wHaybn4eo5VJ1tpPVf6tiCYMudspgE+GRq0cWnx6/tWiAPfLrBLybDzcHn 2u0gppx4GiWAaddO5IUS+lRVaWrRJN+ieIlRGJ46ggsMjvNcl2sUVOCUvaxzePH+Vj9B gR/5Pnn8Puc3sbjcxEAvhBpgO5dxZqT4d+ddewKDrmXQjh/9qofJlX4FkIiKoCRGDrbp 9mtLzS184JzC+NpdO/jTnJbq/RFRZU52DdGDb1akb7d1WIyw/LShdFUeWq7gLqup6vog zR6AZcZ2jVmBADKXRH3LOise/HS8oik36AfV9m4+bBp34dQ5ui/mmF/GO31URKMl/1K6 r+RQ== 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=xxXcgMZwU4mfddolUySiPYFXwrBkuBacUwm+aWeI0iGnJWvkiepGHPUC2hBqBEEl0S +w4+TQH4Z1i7kLdSUFnYXDmGlfHkx8TIr/kkAMtaslW8FZZP0l34HPhNOivv77+vUQAt OyJAm0ps73tVES7KjO/GVceVLVR2VdmDPiq+QAMQCT8O6Ti0fRop4L4n4SAH2uW6lG4g 5YY6j5PZnWRXIslVic1JkIFnoNwvPusa7FUgxQWScsldXrrv+q4su8KtQr4iNVR2QExw +d1wBbp6bMyTa7ohki4oSeQhX11/sXbl6aNeJpdQAK/mc+jHtRwTmsjl+j6dOEosgnC6 0Few== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="ZTj/R19e"; 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 a10si4337375edj.424.2019.10.31.04.04.09; Thu, 31 Oct 2019 04:04:32 -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="ZTj/R19e"; 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 S1727438AbfJaLBE (ORCPT + 99 others); Thu, 31 Oct 2019 07:01:04 -0400 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]:59358 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727277AbfJaLBD (ORCPT ); Thu, 31 Oct 2019 07:01:03 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (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 88CCFC08B0; Thu, 31 Oct 2019 11:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572519662; bh=DPNAHIwdStIvNykZvPNI9Q22maKuz31rS0G+68nojiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=ZTj/R19eSI2iloeTgQl4aJ1mHlGqvKW3H0tLYv9z/VN8ooDloOlTK2MCzI79lnjhC Unqq8WMfO0mwk1rAoGLbGd+4BIit+foUoT5j3ZcOp1+aA2MRBcaBubUa8W/0l8tmlD oCxnDhEAg4x2ernhMVCwzlpOdVKDUUmeL0hUR4C36jF5N3F4QugdtgMOGGxGrTMqPF YD8wuQQk1d1NiQymWOXUux7Bhy0Madz99s7dmXzwyVROug3lAj/Z1WcOtHY8GbeImf nPwXiXfoT9Jx5YHWUofMzt9NMeVzDMCt2wtCs9zpMhxaSE5jA0sI+PATcCMa3KSJE2 PCrSiSRbOC3bQ== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id 441D3A0077; Thu, 31 Oct 2019 11:01:00 +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 v2 06/10] net: stmmac: xgmac: Fix TSA selection Date: Thu, 31 Oct 2019 12:00:44 +0100 Message-Id: <538f8fa299d6527d6ab108c441d37f511297cce9.1572519070.git.Jose.Abreu@synopsys.com> 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