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] In drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c, the default branch of syna_dwmac_set_phy_intf_sel() calls phy_modes(phy_intf_sel). -- net: stmmac: Add glue layer for Synaptics SL2610 SoC This adds a dwmac glue driver for the DesignWare-based GMAC controllers in the Synaptics SL2610 SoC. It sets the PHY interface mode and the MDIO master select bit through a syscon regmap.
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c > new file mode 100644 > index 0000000000000..0bc4406065847 > --- /dev/null > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c
[ ... ]
> +static int syna_dwmac_set_phy_intf_sel(void *bsp_priv, u8 phy_intf_sel) > +{ > + struct syna_dwmac *dwmac = bsp_priv; > + u32 phyif; > + > + switch (phy_intf_sel) { > + case PHY_INTF_SEL_RMII: > + phyif = CTL_PHY_INTF_RMII; > + break; > + case PHY_INTF_SEL_RGMII: > + phyif = CTL_PHY_INTF_RGMII; > + break; > + default: > + dev_err(dwmac->dev, "unsupported phy interface %s\n", > + phy_modes(phy_intf_sel));
[Severity: Low] Does this print the wrong interface name? phy_intf_sel holds a DWMAC hardware code from common.h, not a phy_interface_t. phy_modes() expects a phy_interface_t, and the two numberings differ: common.h: GMII_MII=0, RGMII=1, SGMII=2, TBI=3, RMII=4, RTBI=5, SMII=6, REVMII=7 phy_interface_t: NA=0, INTERNAL=1, MII=2, GMII=3, SGMII=4, TBI=5, REVMII=6, RMII=7 With phy-mode = "rev-mii", stmmac_get_phy_intf_sel() returns PHY_INTF_SEL_REVMII (7). phy_modes(7) returns "rmii", so the log says "unsupported phy interface rmii", even though RMII is one of the two modes this function supports. For "mii" or "gmii" the code is 0, phy_modes(0) returns "", and no mode is named in the message. The caller already logs a correct message for -EINVAL: stmmac_main.c:stmmac_prereset_configure() { ... ret = plat_dat->set_phy_intf_sel(plat_dat->bsp_priv, phy_intf_sel); if (ret == -EINVAL) netdev_err(priv->dev, "platform does not support %s\n", phy_modes(interface)); ... } Could this dev_err() be dropped, or changed to print the raw phy_intf_sel value?
> + return -EINVAL; > + } > + > + return regmap_update_bits(dwmac->regmap, dwmac->rgmii_ctl, CTL_PHY_INTF_SEL, phyif); > +}
[ ... ]
-- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/2026…%40kernel.org