Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp584543lqp; Fri, 5 Apr 2024 02:53:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM6h0gmvOlq7iWDLjMRnaIwyEhEmna4fZKYIQfSN0nqAMopSBJQ/lVDagnJNtMxjKEWUElTTdkWWnrw+Q/X8+QWUXXzAcwWJP4cRdbpg== X-Google-Smtp-Source: AGHT+IHlmZX05FrdZBpBoSsuHZRONg4qYbLssZHHUKfFTZgX4nEDK20bVyfMLQ+4JDYmwuhuEEWu X-Received: by 2002:a5b:b8b:0:b0:dcb:aa26:50fe with SMTP id l11-20020a5b0b8b000000b00dcbaa2650femr686112ybq.15.1712310781242; Fri, 05 Apr 2024 02:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712310781; cv=pass; d=google.com; s=arc-20160816; b=iZNcbhg7k/wLtsbFg6Y8hU9zUVe8FfyHvwthTYaPtR4DhkfGbZNpvoo+dl0fxncTlN zKgNfTIanYRDbvIjXT2MNqFSbOMReIM57si2YvJy8NAe018xXUbk8szka6ENM2jYfRQ1 O35qbqo/1BW5AcsfKoJQlv9LiABCBbM41lNM4McaklnDWIiRrm0W9unL4lIi7diQVeVg /h8m2otAIWvlIFj7yu488A0K1s2i/xWlH+tHIBF2ixw0Y+nj8k2zCIQE/7hJk5zSn854 z39Eqz+BRXlOaPgVUiPvNQjRozckmeO0wzrUMC5UKX2qNkx0zM2ftkZ3sUXvuFk2MaEM YokA== 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=zKMbOrI0flICAxqWS3G/L19bU9yryTU1I5cWQXor0nU=; fh=tqC39tIlS6D/RAQt4n0YdpNSF39XxlRBPCEXedsdbGs=; b=VP+lQOt75EKqCaRFZsJX5cVKSlrid4KdQz4SZjA/fX2wmVopDvQWg3iw75TpOf6vAq FrGkvhgiszOWIIXzb2yisGAUCWo6k5LnKr9HE+fJKGFUZ/fX5D8rQBchenKzvYtT03L2 2q9daoDScmg5po2Ybj9ZU8T8Mkzd4YPmNGXF7ky/BDKx0YqChhqAe+ga1InH05xdP4sS XdNsUlODtigryU7bVN/DNkGwytpgMqPjZJCP1oHSTs8LNqmmnC/Ovjg1zZ0cFFv+avbp KZNfsUqKMCM+ub5LiIT4SBLvXzGC7yeFvVv79fpM4GS09HdU6e66SsvY9CA9XIGzJORJ vRuw==; 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-132768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132768-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 t10-20020ac8588a000000b004345e80a12bsi1034556qta.118.2024.04.05.02.53.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 02:53:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132768-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-132768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132768-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 DDD561C21651 for ; Fri, 5 Apr 2024 09:53:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D8F9161921; Fri, 5 Apr 2024 09:52:29 +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 1ADD71607BC for ; Fri, 5 Apr 2024 09:52:26 +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=1712310748; cv=none; b=rOXnMC7nFWp8Ctj6VefIkd9GgYbRHJj9Xip+Y/+6MM8oK3PftO1Kmu7p3LQ+44PanTEmDcSMWoo39+AWWIFXbiN0N5lQU01ZgouLfYEGRLrfusYTCt6UhcpIh9dX7YGgdeaKNETdIUzlEdDp2jPX/XJ+1fMTxhEXRDOqF6DMw4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712310748; c=relaxed/simple; bh=OGySa7PRBGVhcZ1wkHb/G4yHgQeuwcgy+IoxJtFPJIk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gD4B1RW5/dDkaZYHHAaxblr0k8EyTWrJgPKi3cOw0SEV7PaJeh7uw9Sg52hMMAU7XsmCRdg48RsHK1Fl1rrx8wA9ghmYiJUVoZHmqeVTYk8yMk6nBQKpdEKqKKQGziNuJ+V6LljuXzXFXc0fz+VVWuqMBnTR1Me6uCy58E/Z9fo= 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 1rsgFA-0005EG-SA; Fri, 05 Apr 2024 11:52:20 +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 1rsgF8-00AXqj-Ey; Fri, 05 Apr 2024 11:52:18 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rsgF8-001U5X-13; Fri, 05 Apr 2024 11:52:18 +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 v3 7/9] net: dsa: microchip: enable ETS support for KSZ989X variants Date: Fri, 5 Apr 2024 11:52:14 +0200 Message-Id: <20240405095216.353829-8-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240405095216.353829-1-o.rempel@pengutronix.de> References: <20240405095216.353829-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 I tested ETS support on KSZ9893, so it should work other KSZ989X variants too. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/microchip/ksz_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 840b17b8507e1..dc96931e62da8 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -1378,6 +1378,7 @@ const struct ksz_chip_data ksz_switch_chips[] = { .port_nirqs = 2, .num_tx_queues = 4, .num_ipvs = 8, + .tc_ets_supported = true, .ops = &ksz9477_dev_ops, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), @@ -1411,6 +1412,7 @@ const struct ksz_chip_data ksz_switch_chips[] = { .port_nirqs = 2, .num_tx_queues = 4, .num_ipvs = 8, + .tc_ets_supported = true, .ops = &ksz9477_dev_ops, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), @@ -1442,6 +1444,7 @@ const struct ksz_chip_data ksz_switch_chips[] = { .port_nirqs = 2, .num_tx_queues = 4, .num_ipvs = 8, + .tc_ets_supported = true, .ops = &ksz9477_dev_ops, .mib_names = ksz9477_mib_names, .mib_cnt = ARRAY_SIZE(ksz9477_mib_names), -- 2.39.2