From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3906C7EE30 for ; Sun, 29 Jun 2025 22:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=RSJ6GWO4nNJ9SsMp6hiT23W/O0nWv22J9ZN1zvUDgHo=; b=iwUVJTPB89RHKXvzO0sVlz0AS5 DF+2MpeMDlO9mY8Szl1EMEG16jLpIGu3dycG58aigHu081fMGDQInYFyMT9w0V5iN91bgDY4zk09+ k3pw50OhJFfiMAS6pHi7LQV+jGnE++Dc/WkTYVC6Lu2WIVvtzBJzJurcBL6vxB9OgidXDxwPW/EOt VkCV3whHW36evN24/LtNb1B+Yk8C2MoQetr98dmWDfWzoKJ/SRuURc9tkIQy4YWmeAcQE+B0lv5e+ c7hRVzqAQylitwtkBwGXpa7H8p2DDndEiIz1Rk2OLpP0JGm3YZi5gF4AE5GZA4yQdsqY6+kpcjHeL D+HlERvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uW0Ts-00000000o8h-49ik; Sun, 29 Jun 2025 22:26:36 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uW0PH-00000000nng-3gm9; Sun, 29 Jun 2025 22:21:54 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2) (envelope-from ) id 1uW0Oz-000000002Iz-2I42; Sun, 29 Jun 2025 22:21:33 +0000 Date: Sun, 29 Jun 2025 23:21:28 +0100 From: Daniel Golle To: Felix Fietkau , Frank Wunderlich , Eric Woudstra , Elad Yifee , Bo-Cun Chen , Sky Huang , Sean Wang , Lorenzo Bianconi , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v2 0/3] net: ethernet: mtk_eth_soc: improve device tree handling Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250629_152151_932211_A39878B9 X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series further improves the mtk_eth_soc driver in preparation to complete upstream support for the MediaTek MT7988 SoC family. Frank Wunderlich's previous attempt to have the ethernet node included in mt7988a.dtsi and cover support for MT7988 in the device tree bindings was criticized for the way mtk_eth_soc references SRAM in device tree[1]. Having a 2nd 'reg' property, like introduced by commit ebb1e4f9cf38 ("net: ethernet: mtk_eth_soc: add support for in-SoC SRAM") isn't acceptable and a dedicated "mmio-sram" node should be used instead. Support for the hard-coded offset and including the SRAM region as part of the Ethernet's "reg" MMIO space will still be required in order to support existing legacy device trees of the MT7981 and MT7986 SoC families. While at it also replace confusing error messages when using legacy device trees without "interrupt-names" with a warning informing users that they are using a legacy device tree. [1]: https://patchwork.ozlabs.org/comment/3533543/ Daniel Golle (3): net: ethernet: mtk_eth_soc: improve support for named interrupts net: ethernet: mtk_eth_soc: fix kernel-doc comment net: ethernet: mtk_eth_soc: use genpool allocator for SRAM drivers/net/ethernet/mediatek/mtk_eth_soc.c | 135 +++++++++++++------- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 5 +- 2 files changed, 95 insertions(+), 45 deletions(-) -- 2.50.0