From: Ian Rogers <irogers@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: pavan.chebbi@broadcom.com, michael.chan@broadcom.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
elkin@google.com, Ian Rogers <irogers@google.com>
Subject: Re: [PATCH net-next v3] tg3: Avoid writing uninitialized MII_CTRL1000 in tg3_phy_reset_5703_4_5()
Date: Tue, 1 Dec 2026 09:37:16 -0800 [thread overview]
Message-ID: <20261201173716.1421652-1-irogers@google.com> (raw)
In-Reply-To: <179591373694.3135.13755573347057829013@kernel.org>
On Sun, Nov 29, 2026 at 12:55 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> [Severity: Medium]
> Can this still write 0 to MII_CTRL1000 when phy9_orig_set is true?
>
> Once phy9_orig_set is set it stays set. But every pass of the retry loop
> reads MII_CTRL1000 straight into phy9_orig. __tg3_readphy() clears the
> output before the MDIO transaction and only fills it in on success:
Good catch -- __tg3_readphy() clears *val before the MDIO read, so a
later timeout would overwrite phy9_orig with 0.
Since this is 20-year-old BCM5703/5704/5705 PHY reset code that I don't
have hardware to test, and it has already taken three revisions without
a clean fix, I'm going to drop this patch rather than add further churn.
Thanks,
Ian
pw-bot: cr
prev parent reply other threads:[~2026-12-01 17:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 0:42 [PATCH net-next v3] tg3: Avoid writing uninitialized MII_CTRL1000 in tg3_phy_reset_5703_4_5() Ian Rogers
2026-11-29 0:55 ` netdev-bot+sashiko
2026-12-01 17:37 ` Ian Rogers [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=20261201173716.1421652-1-irogers@google.com \
--to=irogers@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=elkin@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=michael.chan@broadcom.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.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