From: Jakub Kicinski <kuba@kernel.org>
To: a0987203069@gmail.com
Cc: Jakub Kicinski <kuba@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
openbmc@lists.ozlabs.org, ychuang3@nuvoton.com,
andrew+netdev@lunn.ch, linux-stm32@st-md-mailman.stormreply.com,
yclu4@nuvoton.com, pabeni@redhat.com, davem@davemloft.net,
andrew@lunn.ch, peppe.cavallaro@st.com, joabreu@synopsys.com,
linux-kernel@vger.kernel.org, conor+dt@kernel.org,
richardcochran@gmail.com, krzk+dt@kernel.org,
edumazet@google.com, robh@kernel.org, schung@nuvoton.com,
netdev@vger.kernel.org, mcoquelin.stm32@gmail.com,
alexandre.torgue@foss.st.com
Subject: Re: [net-next,v10,3/3] net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family
Date: Fri, 30 Jan 2026 17:50:08 -0800 [thread overview]
Message-ID: <20260131015008.970729-1-kuba@kernel.org> (raw)
In-Reply-To: <20260129054445.416242-4-a0987203069@gmail.com>
This is an AI-generated review of your patch. The human sending this
email has considered the AI review valid, or at least plausible.
For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family
Adds Gigabit Ethernet support for Nuvoton MA35 series SoCs using
the stmmac driver framework.
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c
> --- /dev/null
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c
[ ... ]
> +static struct nvt_priv_data *
> +nvt_gmac_setup(struct platform_device *pdev, struct plat_stmmacenet_data *plat)
> +{
> + struct device *dev = &pdev->dev;
> + struct nvt_priv_data *bsp_priv;
[ ... ]
> + bsp_priv->regmap =
> + syscon_regmap_lookup_by_phandle_args(dev->of_node, "nuvoton,sys", 1, &macid);
> + if (IS_ERR(bsp_priv->regmap)) {
> + dev_err_probe(dev, PTR_ERR(bsp_priv->regmap), "Failed to get sys register\n");
> + return ERR_PTR(-ENODEV);
^^^^^^
Should this propagate the actual error code from
syscon_regmap_lookup_by_phandle_args() instead of always returning
-ENODEV? If the syscon lookup returns -EPROBE_DEFER, this will lose
that error code and prevent the driver from properly deferring its
probe when dependencies aren't ready yet.
Other dwmac drivers (dwmac-loongson1, dwmac-starfive, dwmac-sun8i) use
something like:
return dev_err_probe(dev, PTR_ERR(regmap), "...\n");
or
return PTR_ERR(regmap);
to propagate the error.
> + }
[ ... ]
--
pw-bot: cr
next prev parent reply other threads:[~2026-01-31 1:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 5:44 [PATCH net-next v10 0/3] Add support for Nuvoton MA35D1 GMAC Joey Lu
2026-01-29 5:44 ` [PATCH net-next v10 1/3] dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC Joey Lu
2026-01-29 5:44 ` [PATCH net-next v10 2/3] arm64: dts: nuvoton: Add Ethernet nodes Joey Lu
2026-01-29 5:44 ` [PATCH net-next v10 3/3] net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family Joey Lu
2026-01-31 1:50 ` Jakub Kicinski [this message]
2026-02-02 5:41 ` [net-next,v10,3/3] " Joey Lu
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=20260131015008.970729-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=a0987203069@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=schung@nuvoton.com \
--cc=ychuang3@nuvoton.com \
--cc=yclu4@nuvoton.com \
/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