From: chengke <mjkchengke@163.com>
To: netdev-bot+sinfo@kernel.org
Cc: Frank.Sae@motor-comm.com, netdev@vger.kernel.org, andrew@lunn.ch,
hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
mjkchengke@163.com
Subject: Re: [PATCH v2 1/2] net: phy: motorcomm: return -ETIMEDOUT on BMCR reset timeout
Date: Wed, 25 Nov 2026 17:56:56 +0800 [thread overview]
Message-ID: <20261125102000.1847020-1-mjkchengke@163.com> (raw)
In-Reply-To: <179559859720.3294.18444813646422214701@kernel.org>
Hi,
Replying to the automated review of this series (this is not a repost).
Regarding patch 1/2 ("net: phy: motorcomm: return -ETIMEDOUT on BMCR
reset timeout"): the issue is theoretical, not triggered at runtime. It
was found by code inspection, and I do not have a stack trace or kernel
message to quote.
Reasoning:
yt8521_modify_bmcr_paged() polls BMCR_RESET with a 500ms budget
(500 x ~1ms). If the loop is exhausted while BMCR_RESET is still set,
the last __phy_read() result (the raw BMCR value, a positive number) is
left in ret, and the err_restore_page path hands it to
phy_restore_page(phydev, old_page, ret), which returns it to the caller
as success.
This is very unlikely to trigger in practice: the PHY completes the
self-clear of BMCR_RESET normally, and a >=500ms hang of the self-clear
would more likely indicate an MDIO bus problem, which would already
have failed the __phy_read() in the loop. So there are no observable
symptoms today; the motivation is correctness only, so that the helper
behaves as documented ("returns 0 or negative errno code") and does not
mask a stuck reset.
I also checked all callers under drivers/net/phy/motorcomm.c
(yt8521_soft_reset, yt8521_resume, yt8521_modify_utp_fiber_bmcr,
yt8531s_set_downshift added by 2/2, and yt8821_modify_utp_fiber_bmcr):
they all treat "ret < 0" as error and propagate it, so a negative
-ETIMEDOUT return does not introduce any new failure path; it only
converts the would-be positive BMCR value into a proper errno.
No functional change is expected on healthy hardware.
If reviewers prefer, I can respin with a "found by inspection" note in
the commit message in the next repost (there may be one anyway for
patch 2/2 review comments); per the bot's instruction I am not reposting
just for this.
Thanks,
chengke
next prev parent reply other threads:[~2026-11-25 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:55 [PATCH] net: phy: motorcomm: add downshift tunable support for YT8531/YT8531S ck
2026-11-25 9:16 ` [PATCH v2 1/2] net: phy: motorcomm: return -ETIMEDOUT on BMCR reset timeout ck
2026-11-25 9:16 ` [PATCH v2 2/2] net: phy: motorcomm: add downshift tunable support for YT8531S ck
2026-11-25 9:23 ` [PATCH v2 1/2] net: phy: motorcomm: return -ETIMEDOUT on BMCR reset timeout netdev-bot+sinfo
2026-11-25 9:56 ` chengke [this message]
2026-11-29 9:10 ` [PATCH] net: phy: motorcomm: add downshift tunable support for YT8531/YT8531S netdev-bot+sashiko
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=20261125102000.1847020-1-mjkchengke@163.com \
--to=mjkchengke@163.com \
--cc=Frank.Sae@motor-comm.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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