From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: javen <javen_xu@realsil.com.cn>,
andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, freddy_gu@realsil.com.cn, nb@tipi-net.de
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
daniel@makrotopia.org, vladimir.oltean@nxp.com
Subject: Re: [PATCH net-next v4 3/4] net: phy: realtek: add support for RTL8261C_CG
Date: Wed, 10 Jun 2026 18:32:38 +0200 [thread overview]
Message-ID: <6309a8e9-c0cb-4473-8d94-c6c4ca8ec3f9@bootlin.com> (raw)
In-Reply-To: <20260609020727.1152-4-javen_xu@realsil.com.cn>
Hi,
On 6/9/26 04:07, javen wrote:
> From: Javen Xu <javen_xu@realsil.com.cn>
>
> This patch adds support for Realtek phy chip RTL8261C_CG. Its PHY ID is
> 0x001cc898.
>
> Signed-off-by: Javen Xu <javen_xu@realsil.com.cn>
[...]
> +static int rtl8261x_config_aneg(struct phy_device *phydev)
> +{
> + bool changed = false;
> + u16 adv_1g = 0;
> + int ret;
> +
> + if (phydev->autoneg == AUTONEG_DISABLE)
> + return genphy_c45_pma_setup_forced(phydev);
This condition above is already done when calling genphy_c45_config_aneg,
is it really necessary to put it there ?
> +
> + ret = genphy_c45_an_setup_master_slave(phydev);
> + if (ret < 0)
> + return ret;
> + if (ret > 0)
> + changed = true;
I'm wondering if this call to genphy_c45_an_setup_master_slave() may actually
be integrated directly into genphy_c45_config_aneg(), as we do for C22.
It _may_ break some C45 phys that would rely on default values though, but this
should be more correct ?
Maxime
next prev parent reply other threads:[~2026-06-10 16:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 2:07 [PATCH net-next v4 0/4] Add " javen
2026-06-09 2:07 ` [PATCH net-next v4 1/4] net: phy: c45: add genphy_c45_soft_reset() javen
2026-06-09 2:07 ` [PATCH net-next v4 2/4] net: phy: c45: add genphy_c45_config_master_slave() javen
2026-06-09 2:07 ` [PATCH net-next v4 3/4] net: phy: realtek: add support for RTL8261C_CG javen
2026-06-10 16:32 ` Maxime Chevallier [this message]
2026-06-11 2:31 ` Javen
2026-06-09 2:07 ` [PATCH net-next v4 4/4] net: phy: realtek: load firmware " javen
2026-06-10 9:57 ` [PATCH net-next v4 0/4] Add support " Javen
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=6309a8e9-c0cb-4473-8d94-c6c4ca8ec3f9@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=freddy_gu@realsil.com.cn \
--cc=hkallweit1@gmail.com \
--cc=javen_xu@realsil.com.cn \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=nb@tipi-net.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=vladimir.oltean@nxp.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®