From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Romain Gantois <romain.gantois@bootlin.com>,
"Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 3/3] net: phy: dp83869: Support 1000Base-X SFP
Date: Tue, 4 Nov 2025 10:15:45 +0100 [thread overview]
Message-ID: <e2541569-bfee-4548-a399-af2e43c7a53a@bootlin.com> (raw)
In-Reply-To: <4689841.LvFx2qVVIh@fw-rgant>
Hi,
On 04/11/2025 10:10, Romain Gantois wrote:
> On Tuesday, 4 November 2025 10:01:36 CET Russell King (Oracle) wrote:
>> On Tue, Nov 04, 2025 at 09:50:36AM +0100, Romain Gantois wrote:
>>> +static void dp83869_module_remove(void *upstream)
>>> +{
>>> + struct phy_device *phydev = upstream;
>>> +
>>> + phydev_info(phydev, "SFP module removed\n");
>>> +
>>> + /* Set speed and duplex to unknown to avoid downshifting warning. */
>>> + phydev->speed = SPEED_UNKNOWN;
>>> + phydev->duplex = DUPLEX_UNKNOWN;
>>
>> Should this be done by core phylib code?
>
> I guess that enough PHY drivers do this by hand that a new phylib helper could
> be warranted. Maybe something like phy_clear_aneg_results(), which would set
> speed, duplex, pause and asym_pause to default values.
Note that when phy_port eventually gets merged, we'll have a
common .module_remove() for PHY SFP :
https://lore.kernel.org/netdev/20251013143146.364919-9-maxime.chevallier@bootlin.com/
We could definitely do that here :)
Maxime
next prev parent reply other threads:[~2025-11-04 9:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 8:50 [PATCH net-next 0/3] " Romain Gantois
2025-11-04 8:50 ` [PATCH net-next 1/3] net: phy: dp83869: Restart PHY when configuring mode Romain Gantois
2025-11-04 8:57 ` Russell King (Oracle)
2025-11-04 9:01 ` Romain Gantois
2025-11-04 8:50 ` [PATCH net-next 2/3] net: phy: dp83869: ensure FORCE_LINK_GOOD is cleared Romain Gantois
2025-11-04 8:50 ` [PATCH net-next 3/3] net: phy: dp83869: Support 1000Base-X SFP Romain Gantois
2025-11-04 9:01 ` Russell King (Oracle)
2025-11-04 9:10 ` Romain Gantois
2025-11-04 9:15 ` Maxime Chevallier [this message]
2025-11-04 9:17 ` Romain Gantois
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=e2541569-bfee-4548-a399-af2e43c7a53a@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=romain.gantois@bootlin.com \
--cc=thomas.petazzoni@bootlin.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
all inboxes | Powered by JetHome®