From: Jakub Kicinski <kuba@kernel.org>
To: Julien Blanc <julien.blanc@sprinte.eu>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"o.rempel@pengutronix.de" <o.rempel@pengutronix.de>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"andrew@lunn.ch" <andrew@lunn.ch>
Subject: Re: [PATCH v2] Add config phase for dp83td510e phy
Date: Fri, 11 Sep 2026 16:29:55 -0700 [thread overview]
Message-ID: <20260911162955.5afea33f@kernel.org> (raw)
In-Reply-To: <d304c248bc54092d2302adebc2076ff2a9e7b3e4.camel@sprinte.eu>
On Tue, 8 Sep 2026 10:08:43 +0000 Julien Blanc wrote:
> Add a config phase for the Texas Instruments DP83TD510E ethenet PHY
>
> The config phase currently sets the following properties from the
> device tree:
> * RMII / RGMII mode (note : RMII master / slave can only be set
> by straps and cannot be changed at runtime)
> * RGMII delays. These delays can be enabled on the phy side, only
> as a boolean. Delays are enabled if phy-mode is rgmii-id, or
> rgmii-[rx|tx]id which enables only the corresponding delay.
Clang says:
../drivers/net/phy/dp83td510.c:701:13: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
701 | } else if (phydev->interface == PHY_INTERFACE_MODE_RMII) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/phy/dp83td510.c:710:9: note: uninitialized use occurs here
710 | return ret;
| ^~~
../drivers/net/phy/dp83td510.c:701:9: note: remove the 'if' if its condition is always true
701 | } else if (phydev->interface == PHY_INTERFACE_MODE_RMII) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/phy/dp83td510.c:675:9: note: initialize the variable 'ret' to silence this warning
675 | int ret;
| ^
| = 0
prev parent reply other threads:[~2026-09-11 23:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 10:08 [PATCH v2] Add config phase for dp83td510e phy Julien Blanc
2026-09-08 11:56 ` Andrew Lunn
2026-09-11 23:29 ` Jakub Kicinski [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=20260911162955.5afea33f@kernel.org \
--to=kuba@kernel.org \
--cc=andrew@lunn.ch \
--cc=hkallweit1@gmail.com \
--cc=julien.blanc@sprinte.eu \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
/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