phy_check_downshift(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to phy_check_downshift(9) β€” that’s the Kernel API Manual page we’re reading, and it’s honestly a whole little vibe check for your PHY. πŸ’…βœ¨

🌸 NAME 🌸

phy_check_downshift β€” check whether downshift occurred. Periodt. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

void phy_check_downshift (struct phy_device *phydev );

No cap, that’s the whole signature. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” the phy_device struct. Yep, the struct phy_device itself is what you pass in, bestie. πŸ’–

✨ DESCRIPTION ✨

So this function checks whether a downshift to a lower speed occurred. If that should be the case, it warns the user. 🚨

The prerequisite for detecting downshift is that the PHY driver implements the read_status callback and sets phydev->speed to the actual link speed. That’s the prerequisite, periodt. 🫢

🌈 SEE ALSO 🌈

Kernel file: ./drivers/net/phy/phy-core.c. Here’s the full lineup, and yes every single one is invited to the group chat: πŸ’…


And that’s the whole page, bestie. Footer tea for the record: this one lives under ./drivers/net/phy, the date on it is October 2026, and it’s still phy_check_downshift(9). Slay. πŸ’–πŸŽ€

πŸ“¦ where this page comes from