mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Javen <javen_xu@realsil.com.cn>
To: "Maxime Chevallier" <maxime.chevallier@bootlin.com>,
	"andrew@lunn.ch" <andrew@lunn.ch>,
	"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
	"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	顾晓军 <freddy_gu@realsil.com.cn>, "nb@tipi-net.de" <nb@tipi-net.de>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"daniel@makrotopia.org" <daniel@makrotopia.org>,
	"vladimir.oltean@nxp.com" <vladimir.oltean@nxp.com>
Subject: RE: [PATCH net-next v4 3/4] net: phy: realtek: add support for RTL8261C_CG
Date: Thu, 11 Jun 2026 02:31:17 +0000	[thread overview]
Message-ID: <8bbb4c1a13904338816dbd6827c8630d@realsil.com.cn> (raw)
In-Reply-To: <6309a8e9-c0cb-4473-8d94-c6c4ca8ec3f9@bootlin.com>

>
>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 ?

I will remove it.

>
>> +
>> +     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 ?

I will move it to genphy_c45_config_aneg.

Thanks
BRs,
Javen

>
>Maxime


  reply	other threads:[~2026-06-11  2: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
2026-06-11  2:31     ` Javen [this message]
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=8bbb4c1a13904338816dbd6827c8630d@realsil.com.cn \
    --to=javen_xu@realsil.com.cn \
    --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=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --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®