Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 0EC0036B056 for ; Fri, 6 Mar 2026 13:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772805004; cv=none; b=EKfYTm3ga+Yb1c3u1zsfcAjo1q2B91HWQf0elcmWzIlW2+hv6hB+eGKAkBkTgpMGai0qIDwvRR0QRIM7dZbs+OYY9IaUID12wTrWYpW9kpaz8hjCfxJrJcE+diGbKlxCMSxa1Vf+SUAYJeHB64YpfllXeN+6UHjIfKFgdJeZzqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772805004; c=relaxed/simple; bh=xDkL6TzFGrTxC514XfyOIrW4ST8vZI8e5m+MG2Hs1Zo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jGxMqikviGevMuy9BVdznTa2mYd+UN6bzFqP0Qd619xeI3pLsfFLJB17033Va7/ovueejBH7IMMoU3jXnZCNnnrgemz6Q/TlP1Ev/zsKotbdPhOBivfD8+O5PgwR8giSdgPDoI/heMZuq49ujpj54w6KsDVhtqpST+cZG01ITdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=V+Lc+Q3Y; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="V+Lc+Q3Y" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 1A76F4E4259E; Fri, 6 Mar 2026 13:49:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D6AF35FF92; Fri, 6 Mar 2026 13:49:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 47679103699EA; Fri, 6 Mar 2026 14:49:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1772804988; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=c20mkraPRlwGY3oRHlW+Mslb5VLebC/91Q18kftMfIc=; b=V+Lc+Q3YI20csUK/+es6cMzQASPQbm3w0yg/676z9/NKiipGSIEG+Xm0iztANxCElgi6ho 3SetuUv4madjjCv8utjMBKnn2LX9XiLztVnv7/xWOTO3FBB/DAIF0xnkxbDOHaUocQKppe TLNSBuLsBbamRXcb9fA/myymZx6gqKHxZWim+hdnIKkWusoxhfcmm6Wi6OV7KY7+9uFLLi yR8gUKiFUkq3C8uZU3g4sgtTQkN4C6bbWGuCPXMC84gv/ViTnEgv/WM8uKDd6WfqINtslQ WR4Tw59PXLXt9GIhLJp1Hq2cg8/8OzgRvf1x9aVACnZvpAgc7f4H9soUuirqfA== Message-ID: Date: Fri, 6 Mar 2026 14:49:43 +0100 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 0/8] net: stmmac: mdio related cleanups To: "Russell King (Oracle)" , Andrew Lunn Cc: Alexandre Torgue , Andrew Lunn , Chen-Yu Tsai , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, netdev@vger.kernel.org, Paolo Abeni , Samuel Holland References: From: Maxime Chevallier Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 Hi, On 05/03/2026 11:42, Russell King (Oracle) wrote: > Hi, > > The first four patches clean up the MDC clock divisor selection code, > turning the three different ways we choose a divisor into tabular form, > rather than doing the selection purely in code. > > Convert MDIO to use field_prep() which allows a non-constant mask to be > used when preparing fields. > > Then use u32 and the associated typed GENMASK for MDIO register field > definitions. > > Finally, an extra couple of patches that use appropriate types in > struct mdio_bus_data. > > v2: > - add comments about 300MHz to commit message in patch 1 > - fix incorrect usage of stmmac_sun8i_csr_to_mdc in patch 3 > - fix BIT_u32()->BIT_U32() in patch 8 I have tested this series as a whole on 2 platforms using the dwmac mdio driver (socfpga - KSZ9031 / imx8mp + KSZ9131), no regressions found. I'm not stressing the 300M case though. feel free to add my : Tested-by: Maxime Chevallier Maxime > drivers/net/ethernet/stmicro/stmmac/common.h | 10 +- > drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 +- > .../net/ethernet/stmicro/stmmac/dwmac-loongson.c | 11 +-- > drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 9 +- > .../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 9 +- > .../net/ethernet/stmicro/stmmac/dwmac100_core.c | 9 +- > drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 9 +- > .../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 18 ++-- > drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 106 ++++++++++++--------- > include/linux/stmmac.h | 6 +- > 10 files changed, 92 insertions(+), 97 deletions(-) >