From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Jan Klos <honza.klos@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Andrew Lunn <andrew@lunn.ch>,
Russell King <linux@armlinux.org.uk>,
netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: phy: realtek: Clear MDIO_AN_10GBT_CTRL_ADV10G bit
Date: Fri, 19 Jun 2026 10:49:57 +0200 [thread overview]
Message-ID: <e9e251f9-40b9-4543-b3c1-bac5a9ec5811@bootlin.com> (raw)
In-Reply-To: <20260619011519.50009-2-honza.klos@gmail.com>
Hi,
On 6/19/26 03:15, Jan Klos wrote:
> On RTL8127A connected to a link partner that advertises 10000baseT
> speed cannot be changed to anything other than 10000baseT as 10GbE
> is always advertised regardless of any setting. Fix this by
> clearing MDIO_AN_10GBT_CTRL_ADV10G bit in rtl822x_config_aneg()'s
> call to phy_modify_mmd_changed().
Makes sense, this is also done as part of the C45 config_aneg sequence.
You're missing a few things process-wise :
- a Fixes tag to indicate the commit that introduced the bug
- You must CC all the relevant maintainers, including the top-level networking
maintainers, use ./scripts/get_maintainers.pl to get the list
- The patch must have in the subject an indication that this targets the
'net' tree, for bugfixes, see :
https://docs.kernel.org/process/maintainer-netdev.html
Feel free to re-send a V2 (after waiting 24h), and add my review tag :
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Maxime
>
> Signed-off-by: Jan Klos <honza.klos@gmail.com>
> ---
> drivers/net/phy/realtek/realtek_main.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
> index 27268811f564..b65d0f5fa1a0 100644
> --- a/drivers/net/phy/realtek/realtek_main.c
> +++ b/drivers/net/phy/realtek/realtek_main.c
> @@ -1802,7 +1802,8 @@ static int rtl822x_config_aneg(struct phy_device *phydev)
> ret = phy_modify_mmd_changed(phydev, MDIO_MMD_VEND2,
> RTL_MDIO_AN_10GBT_CTRL,
> MDIO_AN_10GBT_CTRL_ADV2_5G |
> - MDIO_AN_10GBT_CTRL_ADV5G, adv);
> + MDIO_AN_10GBT_CTRL_ADV5G |
> + MDIO_AN_10GBT_CTRL_ADV10G, adv);
> if (ret < 0)
> return ret;
> }
>
> base-commit: 7d8297e26b4e20b5d1c3c3fe51fe81a1c7fbc823
prev parent reply other threads:[~2026-06-19 8:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-19 1:15 Jan Klos
2026-06-19 8:49 ` Maxime Chevallier [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=e9e251f9-40b9-4543-b3c1-bac5a9ec5811@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=hkallweit1@gmail.com \
--cc=honza.klos@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
/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®