From patchwork Tue Jan 30 22:33:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1893143 X-Patchwork-Delegate: linus.walleij@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VFmPJ02W; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Dpic4KTM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TPg3r60mWz1yQ0 for ; Wed, 31 Jan 2024 09:35:34 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bUMXZ7B44kg+FSdseGwh+WTnEabreOBv4RXhiHo0UcE=; b=VFmPJ02WfE0LCH hm4uJSLH6G9TvM4r0RZfbHOr+KfL0WQr2Qwx0lgno5wYpAS3pGg6TyEYDjbvb3PYQ/ZdAm8bzsLtM OuO2TPlvZwgFFKjQe7K2qRC+GhqlTxHGOIvH16nulxIpggSo1J+LdTQo5VpVHuYQbsCcdKKAZqHRP yX2D+V/QFjE8pW6Pn+LM+rc2zjoAVISK1vtrgif1gngxyF83SvMhE+fK/ksvMzOPnQq9M3WF9Clkq qRg3t3Vj9X0Qpe98Ig4txTuq90kQNlPsv0pjC71EvRm6VXwcCpCw2wMpqDHeFDL0Pfbs+Dfm2Mk5m lw3pHXM4cyqSlSjWBKqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUwg4-00000000laW-3DVv; Tue, 30 Jan 2024 22:34:00 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUwg0-00000000lZa-2rDh for openwrt-devel@lists.openwrt.org; Tue, 30 Jan 2024 22:33:58 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-511206d1c89so1071411e87.1 for ; Tue, 30 Jan 2024 14:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706654031; x=1707258831; darn=lists.openwrt.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=1rnlAGu0kQ8feO5JXS7I5AiTrzy+G+VT6asFNs8sI2U=; b=Dpic4KTMvxTbRUluIgBh3R0N19YuogjyDNxWR3V5Y+4nJ30CnloPZQ4eou+q1Cr+rP Xv3+BklLhcalSdi1T+C98jNw2hMcllTegsDTVgZzHycNQPlTjkdmDFvfoz6rO+3Q8Z+e Ki3zVHbZiWzOpa8ypPQTWJYuRjWdiSlOPLRrTSkrfOauASS8dFVc0LPtAsamBGDj82F7 qyj9UHBJALPfoIRS8tw25BuDoEPxVRUvOQMFXJTt7XTHnEVzrMogNFYBF8ffwrtjuzhi IGAvtsay1CnyxJDgHa66uVxJFmElFqNoWGrpsJDrv8U+RtvS6PjR+m/CHblZ4633Rfqe P6zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706654031; x=1707258831; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1rnlAGu0kQ8feO5JXS7I5AiTrzy+G+VT6asFNs8sI2U=; b=rhbj+ZJNKBfcvexVtn/vcKSD1zBeaiAVgnEhm1FZPlJ9Da/JjA7E+Txg4imtI5FUbl y8tqCn9eO3CPfTLNPqecBbnwMZiWl6J2JR0AVBer4pWN/DhA1nyvJ4n/3OkDB4nqiwsM VvLsAZdL0QGIwR65xgHyee8FsIDLIN2SSEfclwStyJy5H2Sw2GBSfwbHJ+7kJJEca9YK hdPw3TmlFmdLsef/Ludzzns2KG0OJ6yIWYlAqdpeW+za8kEORkT3eMMHn8RuM2j51kVj dOoojqlNUJ2g2MVHJSOhr3zRKn9KYEciUH3yUTqxa7PSS3xp8Z7PokveQkRVefUGXByN fH8A== X-Gm-Message-State: AOJu0YwlbBd5KS7uihwDgOzXth2P6Nnt9D2AH+5wYOH0zmlBzu5muUjY 2hif6wdU/VFzKIoxAMVuQMMAQwjf+kKM6thMBk0pimPNS6Dx7cyJLAFSuG2z9dc= X-Google-Smtp-Source: AGHT+IEvrkbV62hxJLdSPxsz+vXmHqs0w0/OQN+25aoClUwGh2XoTvhiVicDSWeuCE1uQJD54lRN2w== X-Received: by 2002:a19:4344:0:b0:50e:74ea:525c with SMTP id m4-20020a194344000000b0050e74ea525cmr21369lfj.3.1706654031434; Tue, 30 Jan 2024 14:33:51 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id f2-20020a056512092200b0051115d1f95fsm637881lft.290.2024.01.30.14.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 14:33:50 -0800 (PST) From: Linus Walleij Date: Tue, 30 Jan 2024 23:33:45 +0100 Subject: [PATCH] modules: Add kernel module for MV88E6xxx DSA switch MIME-Version: 1.0 Message-Id: <20240130-mv88e6xxx-dsa-modules-v1-1-33a5ad370fef@linaro.org> X-B4-Tracking: v=1; b=H4sIAEh5uWUC/x3MSwqAMAwA0atI1gZqLSpeRVxEGzXgjwalIN7d4 vItZh5QDsIKbfZA4FtUjj2hyDMYF9pnRvHJYI11pigNbnfTcBVjRK+E2+GvlRXtQLUjN061IUj tGXiS+H+7/n0/n2Yv+GcAAAA= To: openwrt-devel@lists.openwrt.org Cc: Linus Walleij X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240130_143357_575483_F8C95A2F X-CRM114-Status: GOOD ( 12.07 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This adds a kernel module package for the Marvell MV88E6XXX DSA switch and a separate module package for the DSA tagger since it can in theory be used by multiple DSA switches. Enable both DSA and EDS [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:130 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org This adds a kernel module package for the Marvell MV88E6XXX DSA switch and a separate module package for the DSA tagger since it can in theory be used by multiple DSA switches. Enable both DSA and EDSA tags in the tagger. We can't just compile this in because just a few devices has this DSA, and it depends on e.g. the I2C and SFP to be loaded as modules first. We have no examples of DSA switches being packaged as modules before, all seem to be compiled in, but it actually works just fine to do this. Signed-off-by: Linus Walleij --- package/kernel/linux/modules/netdevices.mk | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) --- base-commit: 3a073a021286bef3fed0ca7884872c5890420d60 change-id: 20240130-mv88e6xxx-dsa-modules-2ba74a4cf70a Best regards, diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 63f75e959145..fb6d565a86af 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -390,6 +390,40 @@ endef $(eval $(call KernelPackage,phy-aquantia)) +define KernelPackage/dsa-tag-dsa + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Marvell DSA type DSA and EDSA taggers + KCONFIG:= CONFIG_NET_DSA_TAG_DSA_COMMON \ + CONFIG_NET_DSA_TAG_DSA \ + CONFIG_NET_DSA_TAG_EDSA \ + CONFIG_NET_DSA=y + FILES:=$(LINUX_DIR)/net/dsa/tag_dsa.ko + AUTOLOAD:=$(call AutoLoad,40,tag_dsa,1) +endef + +define KernelPackage/dsa-tag-dsa/description + Kernel modules for Marvell DSA and EDSA tagging +endef + +$(eval $(call KernelPackage,dsa-tag-dsa)) + +define KernelPackage/dsa-mv88e6xxx + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Marvell MV88E6XXX DSA Switch + DEPENDS:=+kmod-ptp +kmod-phy-marvell +kmod-dsa-tag-dsa + KCONFIG:=CONFIG_NET_DSA_MV88E6XXX \ + CONFIG_NET_DSA_MV88E6XXX_PTP=y \ + CONFIG_NET_DSA=y + FILES:=$(LINUX_DIR)/drivers/net/dsa/mv88e6xxx/mv88e6xxx.ko + AUTOLOAD:=$(call AutoLoad,41,mv88e6xxx,1) +endef + +define KernelPackage/dsa-mv88e6xxx/description + Kernel modules for MV88E6XXX DSA switches +endef + +$(eval $(call KernelPackage,dsa-mv88e6xxx)) + define KernelPackage/swconfig SUBMENU:=$(NETWORK_DEVICES_MENU)