From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796145439; b=Wqm80L+w1gVLh2ky+DFrqkOOOHCuY5M5qF3sLiMXrudlHzef184zFAJGcaa9lD66A5Rq mYIj6ZLLmMYHOzuXlhphtLcBT+A7AKuwpWy6IhiNuE+sw6CTudqirC076U9haftG9ilf1 v80Gcpg94JkXYW0RqGJ31QEoruZUjoLxUY0Fyqhq8RQPLPgRpv2ObRnIUqqgRzbYeaqEf orbemhiLw+3/OReb7bd2MulwWOisipXBnAx7GD4SqUILXOZVod12ArTuh72kFreDHlUSu iJTbgfQyb/MvxtBv0PBvRBJKV39bxdDsZQcnVGIC2Y5QadJPOXRm5S0W3X71mFXd87A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796145439; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8FQXj6MFgl+1hstxJSY31LrtsnqGry6T1CCB/6EaxBg=; b=xUSXchlIMRYgHPVcIzQOr9MQ1BRptvPzKzMHQafYbfyfa8Z8poWLnoOJUb9REHTcfeW8 RpLOzzkwxZaToJMkbW0XDY1iBGVeSH8Ke9PaS2BuqvEPn9Dy/VDd0WKXBFgB6Q4UvUALn BkgYYkSflXngmLMSe1djt5HgrFr+t7pL4u+42J9YHEKRNa8LkjyRD4ILhiwRfqoLQO8XY lv2oN9bU+5Y35bgokYYtv2q2kFySYc38FFG4uQOjW/HMGe2skwgDmt9bM9SlPVWLARPLL a952teylwTm4r4HK1H/8hMFzxeP54E7UkDMCaCiE/gYuNguTpajaKZcLi7VuHjtGlIQ== 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=kmGWqVKb; 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 47182606A329 for ; Tue, 1 Dec 2026 17:17: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=kmGWqVKb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78E471F00899; Tue, 1 Dec 2026 17:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796145438; bh=8FQXj6MFgl+1hstxJSY31LrtsnqGry6T1CCB/6EaxBg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kmGWqVKbvEVwBvI4svzAw2lruRyMmqqOHLcD+erlDBRzZwEuCqdsqWaY0imtyYII6 zY6Dzl7z2SNNbIVjX/mNPUI1PrBJNrHsKHvuY+jkFkH7ST7qrcZHMZJgcFkuzGhN4b J4Nuz36zu0Zqz809atU3TPraS+ZkOHl7WcXBPCw67TTXAmdZ84Xh18ZX5++aymiArA wbIxtEZ1aMacNkxP3NVsUUwQFDvXYDyvsSNM3cixOxrYt0SBbvHqFzkjfH+82AhgOt a/ZarLShg6B2fShLSrM9cpWCiLkGh8W1fpX/GhuZPAbZQpmCJ9mOUJJontWfv1hGQL huk6XBeMdMgdA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v2 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC Reply-To: sashiko-reviews@lists.linux.dev To: "Jisheng Zhang" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261130165639.12839-3-jszhang@kernel.org> References: <20261130165639.12839-1-jszhang@kernel.org> <20261130165639.12839-3-jszhang@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 17:17:18 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: stmmac: dwmac-syna: wrong enum passed to phy_modes() in syna_dwmac_set_phy_intf_sel() -- commit 9dd873c241f99956f19f17a79353484a79240b10 Author: Jisheng Zhang net: stmmac: Add glue layer for Synaptics SL2610 SoC This commit adds a DWMAC platform glue driver to support the DesignWare GMAC controllers in the Synaptics SL2610 SoC. > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c b/drivers/n= et/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 =3D bsp_priv; > + u32 phyif; > + > + switch (phy_intf_sel) { > + case PHY_INTF_SEL_RMII: > + phyif =3D CTL_PHY_INTF_RMII; > + break; > + case PHY_INTF_SEL_RGMII: > + phyif =3D CTL_PHY_INTF_RGMII; > + break; > + default: > + dev_err(dwmac->dev, "unsupported phy interface %s\n", > + phy_modes(phy_intf_sel)); > + return -EINVAL; > + } [Severity: Low] Does passing phy_intf_sel to phy_modes() log the wrong interface name? phy_intf_sel is a PHY_INTF_SEL_* value rather than a phy_interface_t (PHY_INTERFACE_MODE_*), so phy_modes() looks up the wrong string (for example, PHY_INTF_SEL_GMII_MII is 0, which maps to PHY_INTERFACE_MODE_NA). stmmac_prereset_configure() already logs an error with phy_modes(interface) when set_phy_intf_sel() returns -EINVAL, so the dev_err() here can be dropped or given dwmac->plat->phy_interface. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130165639.1283= 9-1-jszhang@kernel.org?part=3D2