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 84D3BC71157 for ; Wed, 18 Jun 2025 12:52:40 +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:Cc:To:From:Date:Reply-To: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=XstzbsMdBgpvXArLU4IX3djhcZ4PMHanS8IZaEUIMI4=; b=gP7I63E7RJ2+1Y/xgENP5gGxd9 +hi8cGY+SI4iLZCXkZHn5Yk2xqYsSV4YTpmAmeudARKUKnw6Ty6Mh7CbixajUBHszEPOBg9CtIDuy aN0/WKWCTqaLU4xjoQY2XlFCUD9LEr+V6n7qL4XSpncOFtAtC0LSHuLTnKphzoeFdeE9xE0soJ9Pr 4l4CJa5B3mLoxeWHDFBepc13eB1PQO/+ouKw5fVp6MKxgDzy2obpotfkcJgzpKWPOefbFvKvldMRe Ek2pgaKlZfzBJay6vplUhJqaICrPsoDSyRBecCAYR/KIqw2V5NGILWVF8pNJ8RuAAWqjm/IC6uqHv UvML258w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uRsHJ-0000000AC2j-1qDt; Wed, 18 Jun 2025 12:52:33 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uRqEX-00000009p5I-1uZt for linux-arm-kernel@lists.infradead.org; Wed, 18 Jun 2025 10:41:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XstzbsMdBgpvXArLU4IX3djhcZ4PMHanS8IZaEUIMI4=; b=xRNdrcC+zURL0NKyh0g6GsbHfY yaflu1bcQCB0dmciBV+BhHLDxPuZN61101U+qg8MTeXALW6Yg9MqbLqtL607rohL1AuTPSj2fc40v OrdMblsRRDcE6ZViNkmCZ7keP5ysfrPu2eoRpYopdKU7Qx2urW530Wg/SG05oupiukG592YT1uFpP D0C95bPcJFgnALcLkr1C5p3Bvw+9cqBoEwJOaLdoG1vz4BaIctAiaHg1CUT00EUnsMqlWpGizRdFr 57C94Lm4Z9ndFRzQoJTTIvpT4apCsPGMcamLLjXKU+jz3v8fdeUuS8QsDrqk98A64VZznuUXPp7yh AsBIonjg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53870) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uRqEN-0006IK-0i; Wed, 18 Jun 2025 11:41:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1uRqEJ-0006lZ-02; Wed, 18 Jun 2025 11:41:19 +0100 Date: Wed, 18 Jun 2025 11:41:18 +0100 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit Cc: Alexandre Torgue , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Keguang Zhang , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni Subject: [PATCH net-next 0/2] net: stmmac: loongson1: cleanups 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-20250618_034133_496680_02A4D0AA X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. 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 Hi, A couple of patches to cleanup loongson1. First, introducing a match data struct to allow the per-match data to be extended beyond the init function pointer, and then adding a setup method to allow the resource base address to be translated to the MAC index at probe time rather than repeatedly in the setup function. .../net/ethernet/stmicro/stmmac/dwmac-loongson1.c | 73 ++++++++++++++++------ 1 file changed, 55 insertions(+), 18 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!