yt8521_adjust_status(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… yt8521_adjust_status(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual, and we're talking about yt8521_adjust_status β€” the little function that updates speed and duplex onto phydev, and when you're in fiber mode? yeah, it adjusts speed and duplex there too. slay. 🧚


✨ NAME ✨

yt8521_adjust_status β€” update speed and duplex to phydev. when in fiber mode, adjust speed and duplex. no cap, that's literally the whole job description bestie 🫢


🌸 SYNOPSIS 🌸

int yt8521_adjust_status (struct phy_device *phydev , int status , bool
is_utp );

like, it returns an int and takes three things. iconic signature tbh πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” a pointer to a struct phy_device. yes, that phydev. the main character of the whole file 🌟
  • status β€” the yt8521 status read from YTPHY_SPECIFIC_STATUS_REG. it comes pre-read, you don't gotta go get it yourself πŸ’…
  • is_utp β€” either false (yt8521 work in fiber mode) or true (yt8521 work in utp mode). pick your vibe, bestie, but pick correctly πŸ¦‹

⚠️ NOTE ⚠️

The caller must have taken the MDIO bus lock. fr fr, do not skip this one β€” lock first, then call. no exceptions πŸ™ˆ

and it returns 0. that's it. that's the return value πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/phy/motorcomm.c β€” and honestly the whole squad:

like, that's the whole friend group, go read them too 🫢✨


and that's the page!! this cutie lives in ./drivers/net/phy, dated October 2026, and honestly? periodt. πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from