Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1771005lqm; Fri, 3 May 2024 06:17:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7eNM681TwNAanNekRE2kXzKui4V02Y/Z+hcyC0OK4fH8jcdDthcXINDB3frpZ9pl6EobS76xWQmUf0zg2Unfew9FJ+tuT2ODGKEt8UQ== X-Google-Smtp-Source: AGHT+IEebsabJxbBXJalI12wsIDtXKraHC8RCvLCbeoILuYkKaSSWPB63oZefqiUuGvA0Anu9nrM X-Received: by 2002:a05:622a:110b:b0:43a:dd9f:7aa8 with SMTP id e11-20020a05622a110b00b0043add9f7aa8mr2650084qty.9.1714742237191; Fri, 03 May 2024 06:17:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714742237; cv=pass; d=google.com; s=arc-20160816; b=JHpYW+zzBUphHJqsXGvXqwuy/Q2Qx6U/W8lnWmHHD5BHlzX4buhAXji/1dRrwskdsi dQkz1ss6la1ozHsCtf5KYHfqeiGIci668AD1asSE9gWZGVKyOUfmz0BEjPw+/qmE6xqB fyLnGTgcl5paG2SRQ/cSY+UltaMS+RxklTesM+yY1if1jckTCEJShuZQGOWLv7JN68q7 rliHTwRZZsAvYHnEPrfsesMwN141Olwb170ol0XAlAKg+BiaKOrqfR6CtpUIMyqxILZw WCCEOmgbrfEwnc3YlnQSYCe4JsPUZpWNXCD+W3qZZMW+KsE8nI9PfcW3wNa9NlsLJ5ZT xYpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=3xf3gjM55dwP7xoTTTgiIu5DtRpo6P8VT6wEW+ElIrM=; fh=tqC39tIlS6D/RAQt4n0YdpNSF39XxlRBPCEXedsdbGs=; b=aih6ynDvM51aAeuz5REAaMKeSVHCcqdCGeEN2aNP0AGSOD2eOETKfysfKzlVhJHNvl 6rinfZflg4yMAnecKQrUiYhaMwwJ5TxM998YycbRVjLH9d+pedlBfuGal4bU366fcFfv WVqoX1X5XGzDJdEZY7NLFj9CCum4+aBXcRjgeQuQtK8NZWWly51tu2pH+3w4QkPdqd+o dc9b71anUDdpuKJRncZc4fctfWs8iMtpCCYl8PNJLfQlh2/Yq7YYgGEXfzCj7MMJ/KSr 9NJedLnFEZcUHY1wjuf46jLuTBCOTBmkabnoZ3LHZw3/TdaTONPqhVF/pey5ykYm1lKe WMgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-167686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167686-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d3-20020a05622a15c300b0043a2a236617si3373938qty.218.2024.05.03.06.17.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 06:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-167686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167686-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E74481C21AC2 for ; Fri, 3 May 2024 13:17:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 604A715698D; Fri, 3 May 2024 13:14:17 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 866B915442D for ; Fri, 3 May 2024 13:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742056; cv=none; b=nxuf4iRGlv6bksRNCJi83URHFuBY9YI0u5iLLUW5KSSpGaep0PVBKwQWft2x1FUVjibLqKiE/NFjz98MzFjX6mkMLas7qfjTxOb0QFi/iynfePbRNLLYsRFl2PKMXsI0H2NkzoNIzGRl1NjY+o5Hvr8CkAMw3kn7dlBTFElBQ/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714742056; c=relaxed/simple; bh=85zjgmvVLJwnqXfOkQKjnRpSgkC8666K46RZiCTs5YY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JXesAnSPg1s0A6RjEZnWaUp4yebFxSujfjlBOWHRnvxJftsBFE3XZ4OXi7ZQU1PSop3FuiD5+zsW1E1dkW5BzADDDRP+IrG97LS4cq5w45ToP3KdoY7cUBDd9rW7a3K6IHnVumWSU7Cf4YOwqCw+vMpQicftjDl/tkoY1jM5xSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s2sjf-0006EN-GH; Fri, 03 May 2024 15:13:59 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2sjZ-00FiKL-St; Fri, 03 May 2024 15:13:53 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s2sjZ-008GHp-2O; Fri, 03 May 2024 15:13:53 +0200 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, David Ahern , Simon Horman , Willem de Bruijn , =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH net-next v7 09/12] net: dsa: microchip: let DCB code do PCP and DSCP policy configuration Date: Fri, 3 May 2024 15:13:48 +0200 Message-Id: <20240503131351.1969097-10-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503131351.1969097-1-o.rempel@pengutronix.de> References: <20240503131351.1969097-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org 802.1P (PCP) and DiffServ (DSCP) are handled now by DCB code. Let it do all needed initial configuration. Signed-off-by: Oleksij Rempel Acked-by: Arun Ramadoss --- drivers/net/dsa/microchip/ksz8795.c | 6 ------ drivers/net/dsa/microchip/ksz9477.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index 95f5a5a9898cd..d27b9c36d73fc 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -1565,16 +1565,10 @@ void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port) ksz8_port_queue_split(dev, port, queues); - /* disable DiffServ priority */ - ksz_port_cfg(dev, port, P_PRIO_CTRL, PORT_DIFFSERV_ENABLE, false); - /* replace priority */ ksz_port_cfg(dev, port, P_802_1P_CTRL, masks[PORT_802_1P_REMAPPING], false); - /* enable 802.1p priority */ - ksz_port_cfg(dev, port, P_PRIO_CTRL, PORT_802_1P_ENABLE, true); - if (cpu_port) member = dsa_user_ports(ds); else diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c index 7f745628c84d1..f8ad7833f5d9d 100644 --- a/drivers/net/dsa/microchip/ksz9477.c +++ b/drivers/net/dsa/microchip/ksz9477.c @@ -1158,18 +1158,12 @@ void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port) /* enable broadcast storm limit */ ksz_port_cfg(dev, port, P_BCAST_STORM_CTRL, PORT_BROADCAST_STORM, true); - /* disable DiffServ priority */ - ksz_port_cfg(dev, port, P_PRIO_CTRL, PORT_DIFFSERV_PRIO_ENABLE, false); - /* replace priority */ ksz_port_cfg(dev, port, REG_PORT_MRI_MAC_CTRL, PORT_USER_PRIO_CEILING, false); ksz9477_port_cfg32(dev, port, REG_PORT_MTI_QUEUE_CTRL_0__4, MTI_PVID_REPLACE, false); - /* enable 802.1p priority */ - ksz_port_cfg(dev, port, P_PRIO_CTRL, PORT_802_1P_PRIO_ENABLE, true); - /* force flow control for non-PHY ports only */ ksz_port_cfg(dev, port, REG_PORT_CTRL_0, PORT_FORCE_TX_FLOW_CTRL | PORT_FORCE_RX_FLOW_CTRL, -- 2.39.2