bcm_config_lre_advert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bcm_config_lre_advert(9) ✨

okay so bestie, welcome to the kernel API manual πŸ’… this one is a little helper from the bcm PHY corner of the kernel, and honestly it's giving "quietly does one very specific job and does it well" energy πŸŽ€


🌸 NAME 🌸

bcm_config_lre_advert β€” sanitize and advertise Long-Distance Signaling auto-negotiation parameters ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int bcm_config_lre_advert (struct phy_device *phydev );

πŸ’– ARGUMENTS πŸ’–

  • phydev β€” the target phy_device struct 🫢 like, the PHY you're doing this to

πŸ‘‘ RETURN πŸ‘‘

  • 0 β€” the PHY's advertisement hasn't changed, no cap πŸ’€
  • < 0 β€” error, something went sideways 😭
  • > 0 β€” it has changed, slay πŸ”₯

🌈 DESCRIPTION 🌈

So what it actually does: it writes MII_BCM54XX_LREANAA with the appropriate values ✨

The values are supposed to be sanitized beforehand, so we make sure we only ever advertise what's actually supported 🧚 this is the important bit, don't skip it.

And the sanitization? Already done, bestie β€” it happens in phy_ethtool_ksettings_set πŸ’… so by the time this runs, the vibes are already checked.

πŸ“ SEE ALSO πŸ“


and that's the whole page, iconic honestly πŸ’œ this one lives in ./drivers/net/phy and the manual's dated October 2026 β€” mwah, go read the source, iykyk 🌟

πŸ“¦ where this page comes from