Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796160139; b=EyExf8siVxnSQzyA2jZwn+s4jCUv8iY68GPc6o7upCW+fY+Et+mPyPAJStLjYr/LGYV2 5aM9H/r/4/endNtOfCdKj5/tbEDfmDTWIpG5uKq8VYJU2+MC34ECIutoi/T+oWoltnyp0 jAyPa8hSqb7guo0I2lbgbfrUC39jSGSHU3UO/UUIpZBBaMzh2+BCleIklzkDsmmyWNLNr A+QhatczSQxowUibXCCmrCK/kH6dN2w9WbDTkENRHfHjLoNp0EM3iu1zFWQ1KsK/dJ+/q ncCOuVToEAU2vEyK524LdGQFt4gDK9hXvpa58YfrYbz700bGG92es6yAmHvx3AdneWA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160139; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=TQavW6wheeBQuIwmbcZK8lyww2X4jB5aquDVwqxQJv0=; b=TtllVk1OyZO8fs5f0v66A0NpR8d8NeEFpMgrbGGXq5D5VltMyKKc9r0jXiwLCg5kGppX F63DBIG87m5iYhDgHqfAbcogoJO4LM0o4zke5oiRW7jukv248oDmuYiUHITQx9GUO/3Pg PnixxPd6Grw3pQK/Xa38y/RX5jA6Srq77tFHERiPu3VHNr9bfTf3HbaFuCXnRUHjMyT1h jF8hGwxkt/7ie20CPlfSKbh3Yv+WQyYB28tqOU8VWpoJvTt37U+ROFOJnPY6pJYbHFQRG FAVnGYkRdmEaeeYkgOzDNG82+U7D8Z6OxoCGo4ka8lgwX4PopECCm6P71C6NLT22Imw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Vpv7QjvY; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B0DB606A68E; Tue, 1 Dec 2026 21:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Vpv7QjvY Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEF451F00893; Tue, 1 Dec 2026 21:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796160139; bh=TQavW6wheeBQuIwmbcZK8lyww2X4jB5aquDVwqxQJv0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Vpv7QjvY18Mg+IA/cQWzmgb0VLCAuh/e/ChkDI0ZxuzJzYTg/hnSrisMetf3mevgC AEQ5m1b3VnsfJhYwFSgegNwFThxFi3IYHy547IFjr2WZ0VQWisLulveF+xA/lgF6Rw QAHnrthG/a4MQ/kwI9hPe9NsSZPEEJwI4ACDAkaYk5k4BRdFkaBzY9NmT2p46alqOu 2OgW1gtOIDwYmBwtalzWokGOoSzB92ZiaokAOs8np9YZWT7qLdqMu3HD7a5ECRDwwn NdeBCidt9lDMH69Yas++Ee8CVYvfhLxmciR3Te/+P87Bc+d+t8Nup3zH+a46XQUGNw Ic5zDYzMGrJwQ== Subject: Re: [PATCH net-next v17 10/15] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support From: netdev-bot+sashiko@kernel.org To: namiltd@yahoo.com Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de Date: Tue, 01 Dec 2026 21:22:17 +0000 Message-ID: <179616013744.3146.12761762298631844706@kernel.org> In-Reply-To: <3fcaf694-597e-4b77-8f56-d0cc33232c98@yahoo.com> References: <3fcaf694-597e-4b77-8f56-d0cc33232c98@yahoo.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] On family D, rtl8365mb_pcs_config() (drivers/net/dsa/realtek/rtl8365mb_main.c) now skips the… -- net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support This patch extends the RTL8367S SGMII/HSGMII PCS code in rtl8365mb to family D switches. On these switches the SerDes is reached through the indexed SDS13 window and the SDS_MISC fields differ from family C. It adds family D tuning tables and SDS_MISC programming, skips the steps that only apply to family C, and stops advertising 10/100 Mbit/s on the family D SerDes port. > diff --git a/drivers/net/dsa/realtek/rtl8365mb_main.c b/drivers/net/dsa/realtek/rtl8365mb_main.c > index 7500ea9b3a627..2e661ddd8cd23 100644 > --- a/drivers/net/dsa/realtek/rtl8365mb_main.c > +++ b/drivers/net/dsa/realtek/rtl8365mb_main.c [ ... ] > @@ -1575,34 +1663,60 @@ static int rtl8365mb_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, [ ... ] > ret = regmap_update_bits(priv->map, RTL8365MB_SDS_MISC_REG, > - RTL8365MB_SDS_MISC_MAC8_SEL_SGMII_MASK | > - RTL8365MB_SDS_MISC_MAC8_SEL_HSGMII_MASK, > - mode == RTL8365MB_EXT_PORT_MODE_SGMII ? > - RTL8365MB_SDS_MISC_MAC8_SEL_SGMII_MASK : > - RTL8365MB_SDS_MISC_MAC8_SEL_HSGMII_MASK); > + misc_mask, misc_val); > if (ret) > return ret; > > - val = mode << RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_OFFSET(id); > - ret = regmap_update_bits(priv->map, > - RTL8365MB_DIGITAL_INTERFACE_SELECT_REG(id), > - RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_MASK(id), > - val); > - if (ret) > - return ret; > + if (!is_d) { > + val = sds_mode << RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_OFFSET(id); > + ret = regmap_update_bits(priv->map, > + RTL8365MB_DIGITAL_INTERFACE_SELECT_REG(id), > + RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_MASK(id), > + val); > + if (ret) > + return ret; > + } > > /* Take the SerDes out of reset. The vendor driver does this only > * after the SerDes mux and the interface mode are configured. > */ [Severity: Low] On family D, rtl8365mb_pcs_config() no longer writes the DIGITAL_INTERFACE_SELECT mode for the SerDes interface. Neither the code nor the commit message gives a reason. Could a short comment here or a sentence in the changelog explain it? The skip itself looks necessary. id is RTL8365MB_SDS_EXT_INTERFACE_ID (1, the family C id). On the RTL8367S-VB that id is the RGMII port 7, so the write would overwrite port 7's mode. The family D mode values (0x02/0x12) also don't fit in the 4-bit field. Family D does still use this register, though. rtl8365mb_ext_config_rgmii() programs it for the family D EXT1 RGMII port: ret = regmap_update_bits( priv->map, RTL8365MB_DIGITAL_INTERFACE_SELECT_REG(extint->id), RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_MASK(extint->id), ... On the SerDes path, the EXT0 mode field (bits 3:0 of DIGITAL_INTERFACE_SELECT_REG0) keeps whatever the reset default, EEPROM or bootloader left there. The comment just above also says the vendor driver deasserts the SerDes reset only after "the interface mode" is configured. Does the vendor RTL8367D sequence leave the EXT0 select field alone because the SDS_MISC mode field is enough to select the SerDes mode? Or does it also program EXT0 at this point? If it does, could a bootloader that leaves EXT0 in a non-SerDes mode keep the link from coming up? The commit message covers the other family D differences (line rate bypass, port 6 rate limiters, pause, 10/100 Mbit/s), but not this one. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com