Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1009502ybx; Wed, 30 Oct 2019 08:31:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN/s1gxAdrE3ygK1K+jVtvS0T6Z2bUd7yNFWYkGeUORVpWxSrK1V41lu53DZptUuZOp7Nb X-Received: by 2002:aa7:d3c4:: with SMTP id o4mr277588edr.194.1572449511924; Wed, 30 Oct 2019 08:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572449511; cv=none; d=google.com; s=arc-20160816; b=b7R1zCxCJnSdCD7JY8XMb+eUs6EP1BqsvflXU0DUvdTl+wvh1DluyQ8WGg0yYvm0Jl wqmD393nxARPsqpoaDWrDNO0vE5m10jw3uWCf4VM26MQlhWtsHi5/4vtiJb2UzIfQC6s tPiQyKNZ6PEUf64L8PLFvTi/IuQz895sFatvqGOjP26bp/nnmqUAi2PnYM1dCOWZI05M II5v7Bgr6ZGUsPclWxVNnGnJJrKNYjQWSv5rC9XTNq92ubL1OwzVM/6XpTIbcTCG3top AzRDdlXRkbYL1HVJEju0wWSk2Yua2i3qB9pChPOjt7Pv0C4YOqpUycoPfP01VoIfgIbn BdxA== 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=YcD688o9poOR6CJ3SPbJcybKQKLrvieE0HcGanAoHsg=; b=CbQ1sH3xrCZs7cfrowWKlSpH8BtLEqxi5bfpohqJ7tsmhpFjO+wCM/sEGC8UAoHFjW KBU1tDydYqByXoWch1himGlgBDIH8/MRJ0Rys3sZmsqYGI6uSEbYlOcJii72dIXk8jsu 3fFQQgHakFBq/lpp4rqmfhjmfFGjloDpfWs1Cg8jRWCKF12IK5ss0zunmp42X5kzmbOK lxDId1CknSYJe5ZmzdyrM2tHt2t9ocAS3yVgDbcu2/puKO112QuFGLCdVqnn7k5/bFOa 3UJPUwCZh3d2GewlWizJ+1hc9bbI8dgJOlVfCIKRBNClM/rbwTSRuZCBUlngksj9d5yM Sgiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=C0JfV5wf; 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 e12si2057025edj.70.2019.10.30.08.31.27; Wed, 30 Oct 2019 08:31:51 -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=C0JfV5wf; 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 S1727307AbfJ3P3H (ORCPT + 99 others); Wed, 30 Oct 2019 11:29:07 -0400 Received: from dc8-smtprelay2.synopsys.com ([198.182.47.102]:39130 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727039AbfJ3P3F (ORCPT ); Wed, 30 Oct 2019 11:29:05 -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 33041C0DE5; Wed, 30 Oct 2019 15:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1572449345; bh=scoltA+WigVvTzqdJe03QvtfADm3p97oUkWlWeL7UFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=C0JfV5wftejE2Zrc7hs298DB1il00674wv+0PaRxFtNkoGvpmkNNtTFYJ56xnidN1 ASC+0Bp+rlLpTP8I5d7QuzkcAsG8LsLqVr0WY9fooMt95yhVFfTGQKasuHDyYjAFpd wwfn7bGENArpW0UOcDBE43gaHU0+tMDashY/KkBJDGcAmRF5rNJJbxCsmPPUvxX8fa BJNIN7zlxrFGqowRw3UQkFZrHvZVMTqV8jGG+EGOSMYOpdzXOt63EQebBLYhhnOjpU oT/PRO+FlNRz0SXTEuChQ4TlDTskk1uulbWMQ/eeu6HOAT5NzFA1YPWAUx1EC5D1l4 7MiGLNceonL9w== Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by mailhost.synopsys.com (Postfix) with ESMTP id DD1DCA0064; Wed, 30 Oct 2019 15:28:58 +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-next 3/3] net: stmmac: tc: Remove the speed dependency Date: Wed, 30 Oct 2019 16:28: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 XGMAC3 supports full CBS features with speeds that can go up to 10G so we can now remove the maximum speed check of CBS. 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/stmmac_tc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index f9a9a9d82233..7d972e0fd2b0 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c @@ -321,8 +321,6 @@ static int tc_setup_cbs(struct stmmac_priv *priv, return -EINVAL; if (!priv->dma_cap.av) return -EOPNOTSUPP; - if (priv->speed != SPEED_100 && priv->speed != SPEED_1000) - return -EOPNOTSUPP; mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; if (mode_to_use == MTL_QUEUE_DCB && qopt->enable) { -- 2.7.4