public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Daniel Wagner <wagner.daniel.t@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
	netdev@vger.kernel.org,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	bcm-kernel-feedback-list@broadcom.com
Subject: Re: [PATCH net-next] net: phy: bcm84881: add BCM84891/BCM84892 support
Date: Tue, 24 Mar 2026 22:53:57 +0000	[thread overview]
Message-ID: <acMWBQ8rUm7lpr0h@shell.armlinux.org.uk> (raw)
In-Reply-To: <CAMsLQxFp4hFxTbjBswM3GqX+VsT9G2Y0uP_fDhQkbzJdhbLD2A@mail.gmail.com>

On Tue, Mar 24, 2026 at 09:59:02PM +0000, Daniel Wagner wrote:
> > Can you confirm whether bit 0 changes depending whether the PHY has
> > link. I don't know whether that's media link or host-side link, so
> > I suggest checking both.
> 
> Bit 12 does seem to track copper link state in my test:
>   [0s] 0x3107  bit12=1   carrier=1   plugged
>   [4s] 0x2107  bit12=0   carrier=0   unplugged
>   [19s] 0x3107  bit12=1   carrier=0   replugged, PHY sees it
>   [20s] 0x3107  bit12=1   carrier=1   phylib poll catches up
> 
> Bit 0 stayed at 1 through all of that, and through ifdown/ifup too.
> I'm not sure what it is, but it doesn't appear to track either link
> under the conditions I can test.
> 
> Bits[4:1] stayed at 3 through all of it: copper transitions, different
> copper speeds (1G, 2.5G), ifdown/ifup, on both BCM84891 and BCM84892.
> No USXGMII codes.

I suggest this is not the same register bit allocation as on
the bcm84881 in that case.

Also note that phylib's poll "catches up" because the link bit in
BMSR is intentionally sticky-down to ensure that link-down events are
not missed - if the link was down and then comes up, it intentionally
takes two reads to indicate link up to ensure that the link down state
doesn't get lost.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

  reply	other threads:[~2026-03-24 22:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 15:25 [PATCH net-next] net: phy: bcm84881: add BCM84891/BCM84892 support Daniel Wagner
2026-03-24 15:49 ` Russell King (Oracle)
2026-03-24 18:54   ` Daniel Wagner
2026-03-24 19:18     ` Andrew Lunn
2026-03-24 19:42       ` Daniel Wagner
2026-03-24 20:01       ` Russell King (Oracle)
2026-03-24 21:59         ` Daniel Wagner
2026-03-24 22:53           ` Russell King (Oracle) [this message]
2026-03-24 19:32     ` Russell King (Oracle)
2026-03-24 15:52 ` Andrew Lunn
2026-03-24 19:06 ` [PATCH net-next v2] " Daniel Wagner

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=acMWBQ8rUm7lpr0h@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=andrew@lunn.ch \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=hkallweit1@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=wagner.daniel.t@gmail.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