mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Christian Marangi <ansuelsmth@gmail.com>,
	Andrew Lunn <andrew@lunn.ch>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Russell King <linux@armlinux.org.uk>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net 3/3] net: phy: as21xxx: force C45 OPs for AUTONEG
Date: Thu, 4 Jun 2026 12:22:43 +0200	[thread overview]
Message-ID: <993cc534-63a6-4cc9-a54b-efc78acdb38b@bootlin.com> (raw)
In-Reply-To: <20260601105342.28865-3-ansuelsmth@gmail.com>



On 6/1/26 12:53, Christian Marangi wrote:
> With further testing with 2.5G NIC, it was discovered that the PHY
> require the C45 OPs to configure and restart ANEG or speed higher than
> 1G doesn't function correctly.
> 
> To force C45 OPs with generic PHY function, clear the C22 bit from
> devices_in_package bitmask.
> 
> Fixes: 830877d89edc ("net: phy: Add support for Aeonsemi AS21xxx PHYs")
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Maxime

> ---
>  drivers/net/phy/as21xxx.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/net/phy/as21xxx.c b/drivers/net/phy/as21xxx.c
> index 97ca37c6929f..a6686b4908c6 100644
> --- a/drivers/net/phy/as21xxx.c
> +++ b/drivers/net/phy/as21xxx.c
> @@ -616,6 +616,13 @@ static int as21xxx_probe(struct phy_device *phydev)
>  	if (ret)
>  		return ret;
>  
> +	/* Even if PHY declare support for Clause 22 register,
> +	 * Clause 45 register should be used for ANEG configuration
> +	 * and restart. Clear the C22 bit for devices_in_package to
> +	 * force C45 generic OPs in generic PHY ANGE OPs.
> +	 */
> +	phydev->c45_ids.devices_in_package &= ~BIT(0);
> +
>  	ret = aeon_ipc_sync_parity(phydev, priv);
>  	if (ret)
>  		return ret;


  reply	other threads:[~2026-06-04 10:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01 10:53 [PATCH net 1/3] net: phy: as21xxx: handle corner case with link and autoneg complete Christian Marangi
2026-06-01 10:53 ` [PATCH net 2/3] net: phy: as21xxx: fix read_status speed handling Christian Marangi
2026-06-04 10:18   ` Maxime Chevallier
2026-06-01 10:53 ` [PATCH net 3/3] net: phy: as21xxx: force C45 OPs for AUTONEG Christian Marangi
2026-06-04 10:22   ` Maxime Chevallier [this message]
2026-06-04 11:07   ` Paolo Abeni
2026-06-04 10:14 ` [PATCH net 1/3] net: phy: as21xxx: handle corner case with link and autoneg complete Maxime Chevallier

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=993cc534-63a6-4cc9-a54b-efc78acdb38b@bootlin.com \
    --to=maxime.chevallier@bootlin.com \
    --cc=andrew@lunn.ch \
    --cc=ansuelsmth@gmail.com \
    --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 \
    /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®