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 5F9D4C7EE2A for ; Sat, 28 Jun 2025 01:33:05 +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=Mt9A+xuTs9eYeL3NQHc9hR9iXxEQskkMsaraL0ZfCHU=; b=0zSbE6a9PPObZ0/+IncgdeBpyj 95tyjhipd1uSulA5Fz0cOXN9rB63QzQXgPaoilINTzVqY8LNTrcDI0TmCWqOvB0V6g+NAj+cqowNv FurTvKFPp3RCtCHkPVyVglSLHWSl1i9aW9EzQdrq7M8irSanazWlqySBiQyPXJtGgr7xBIsvf+jqL q4ZJeYM17rG6covx8XBmmLlgouy3Su5QvKCZydLCrR+EeK6n1LLz1OU87tY4j9jH2MmKa42L3eEl5 mrdEpzD5TARhHOdS5BQGGp/Tz+uYrj4Ipw4BYAosmzvZO83jnNFzlM0k1Mo0sXYn49WWb9Tf7/WWV qYFT21KA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uVKR8-0000000G907-242I; Sat, 28 Jun 2025 01:32:58 +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 1uVKOn-0000000G8Zf-1hSA; Sat, 28 Jun 2025 01:30:34 +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 1uVKOY-000000004QA-0bQ9; Sat, 28 Jun 2025 01:30:18 +0000 Date: Sat, 28 Jun 2025 02:30:14 +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 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-20250627_183033_441059_DAC9ECAA X-CRM114-Status: GOOD ( 11.47 ) 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 The series further improves the mtk_eth_soc driver in preparation to complete upstream support for the 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 | 134 +++++++++++++------- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 5 +- 2 files changed, 94 insertions(+), 45 deletions(-) -- 2.50.0