From: sashiko-bot@kernel.org
To: "Jisheng Zhang" <jszhang@kernel.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v2 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC
Date: Tue, 01 Dec 2026 17:17:18 +0000 [thread overview]
Message-ID: <sashiko-outbox-243802@kernel.org> (raw)
In-Reply-To: <20261130165639.12839-3-jszhang@kernel.org>
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 <jszhang@kernel.org>
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/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));
> + 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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130165639.12839-1-jszhang@kernel.org?part=2
prev parent reply other threads:[~2026-12-01 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 16:56 [PATCH net-next v2 0/2] net: stmmac: add SL2610 ethernet support Jisheng Zhang
2026-11-30 16:56 ` [PATCH net-next v2 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC Jisheng Zhang
2026-11-30 20:11 ` Rob Herring (Arm)
2026-12-01 0:17 ` Jisheng Zhang
2026-12-01 17:17 ` sashiko-bot
2026-11-30 16:56 ` [PATCH net-next v2 2/2] net: stmmac: Add glue layer for Synaptics SL2610 SoC Jisheng Zhang
2026-11-30 19:52 ` Andrew Lunn
2026-12-01 17:17 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-243802@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jszhang@kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox