From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 1A9B1303C8E for ; Mon, 3 Nov 2025 11:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762170590; cv=none; b=jCf14Uhd/g4gxcbP+aj7OJf0H63g3ZH9aev+APnuXNmTsFYCjwj3JRKegdJbZib/3sr3wlA7f/+oaYyRmA29DJedGGzSoFpY2LV4HBcAgJKPj3Blath6DFUBC3NAzEW1UhOsdkO1/QG1NuqaVXf7H6ONFmpllH5kNkEEyjfnJpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762170590; c=relaxed/simple; bh=tVBS72/wkKu2upsUuTa7Hv8lDJkTrOtJ9STg0clPhAw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=OCFo2/tcbSI+Be9jpiNlTrvItQo7E3TuvnC9J2AS2m1QxkuZGW1df68lBYqUiqCNwy5cEYYSY4ZhmMAMHJLcuFn5+uUsPpGKrHVaFvAPBORRXLo1ceDvKMUS6vpA8SzJJyZfnUUSk4HiFvKH3kYN5Qm9TEFrWtdPK8E89vFKgzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=gNKzdyIA; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="gNKzdyIA" 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=GTfMsl5VdszDHeLyngBRKiaPiX+MAqFEJJUPqI8k2GI=; b=gNKzdyIAH2mme3mWN8ZqzZZWor vNnDr4RJdn7vga8saNkBBGnBLW5U2X78/HI2+HCcVG0VTWh0SIIHJQfU3qWFyWzeGhBCR8MaQGPVj rKBALG4yYpxykQEFWOtBtSuE23KFadOONtu5PDwNTLlfc9mGp98uXHRT8Z5+Qkh77ZOSQ45F/HiiI Cd8pEeclcM6R8ItQhkSojdVgfuoLLzJd53hFABseSHuns+iLoZT/wPvIyzn7yv5XD591V77ksOSKf XvrUjJ4ph1dKJH5Uh64MpOOLpGPAbVTIwnbczewIdaV2RxdxpA7P77vQiaOJS4Xuj6hoqGEbG1FrX XIJxknVw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55964) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vFt46-000000000ep-0SZE; Mon, 03 Nov 2025 11:49:38 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.98.2) (envelope-from ) id 1vFt43-000000003mC-1llA; Mon, 03 Nov 2025 11:49:35 +0000 Date: Mon, 3 Nov 2025 11:49:35 +0000 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit Cc: Alexandre Torgue , Andrew Lunn , "David S. Miller" , Eric Dumazet , Fabio Estevam , imx@lists.linux.dev, Jakub Kicinski , Jan Petrous , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , netdev@vger.kernel.org, Paolo Abeni , Pengutronix Kernel Team , s32@nxp.com, Sascha Hauer , Shawn Guo Subject: [PATCH net-next 00/11] net: stmmac: multi-interface stmmac Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Russell King (Oracle) Hi, This series adds a callback for platform glue to configure the stmmac core interface mode depending on the PHY interface mode that is being used. This is currently only called justbefore the dwmac core is reset since these signals are latched on reset. Included in this series are changes to s32 to move its PHY_INTF_SEL_x definitions out of the way of the dwmac core's signals which has more entitlement to use this name. We convert dwmac-imx as an example. Including other platform glue would make this series excessively large, but once this core code is merged, the individual platform glue updates can be posted one after another as they will be independent of each other. It is hoped that this callback can be used in future to reconfigure the dwmac core when the interface mode changes to support PHYs that change their interface mode, but we're nowhere near being able to do that yet. drivers/net/ethernet/stmicro/stmmac/common.h | 10 ++ drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 134 +++++++--------------- drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c | 10 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 54 +++++++++ include/linux/stmmac.h | 1 + 6 files changed, 115 insertions(+), 95 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!