From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06E9B606A31A for ; Tue, 1 Dec 2026 18:07:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cjMiooNL; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QVjmQ8UM 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:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Cc:To:From:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=4BK0ERxV7qZBBIZ1vUIUgBzV493XS/JfuybR0Bx8w6Q=; b=cjMiooNL+5jJ4l/lbf4JzrVPj9 qKRTXYt9p0avMR4iuf2CMk+xutD4RnKK2lPuiXeCB1UZj6sdpm1K7+3yJGVHmFj27HKOoIKgSEHQ9 uhaS50PrDD0omUqFlp/QDL2BEZyORgCYP1sIWTfDYT4BSvA1ORJ/6+uPoj6W/1vh0IkwGIwcb9c/e KmlscIQRVAWBeZlJ3d4ycyVgr7aq1zELhz2U8cJyNPUM4y8ldpbmEvYEosJkKKhj5kXk1lgUhbZVf bkRJ1NvH8u2MHRJowLbb7NGh/OZjVHJOBJUiZ9hwQZ3QaMR/DwrH9iBVWlui6LeC4Eg+mokPk7Aac KXq6yO0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYSGF-000000091ii-0sO6; Tue, 01 Dec 2026 18:07:27 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYSGA-000000091hP-14Vz for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 18:07:24 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id D39AC4543E; Tue, 1 Dec 2026 18:07:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF6721F000C1; Tue, 1 Dec 2026 18:07:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796148441; bh=4BK0ERxV7qZBBIZ1vUIUgBzV493XS/JfuybR0Bx8w6Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QVjmQ8UMsaOsNZKonbWN5EjYmmQr3sFtJwND4jutMOokN1NihFSGAr/+1CryLMw/G /KvW71nAzdoD6ciF8ZOe5K47C2hryeMGabxLbnNBLE79ChdMzPjay7pRWlDA9yjwBZ daS3YGXRHbj9jfxxRbBU8DwEYIPACWnsb5CkSwXL0qdGYVq7qMHIuyICT9V3LI0/65 FAU63Bbfc5RO4EmB0BhwlxtNVjDNGDpcQmgWIVA9MJIwt0Ha3Zs6j4rCvU8K1nwWhw qqJbCm9mGIBYy0nXeUWmVEX3bcA2MrN+8sdHZJdq7sllcFz6TNvptH3pAHb/HGT2zM UUc0YUnjHK2fA== Subject: Re: [PATCH net-next v2 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC From: netdev-bot+sashiko@kernel.org To: jszhang@kernel.org Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, sebastian.hesselbarth@gmail.com, maxime.chevallier@bootlin.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Tue, 01 Dec 2026 18:07:20 +0000 Message-ID: <179614844025.3146.16119972185095747974@kernel.org> In-Reply-To: <20261130165639.12839-3-jszhang@kernel.org> References: <20261130165639.12839-3-jszhang@kernel.org> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Archived-By: MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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/20261130165639.12839-1-jszhang%40kernel.org