genphy_soft_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genphy_soft_reset β€” from the Kernel API Manual, bestie

okay so real talk, this is genphy_soft_reset(9) and it's honestly one of the simpler little icons in the whole PHY universe. no cap. let's get into it 🫢


✨ NAME ✨

genphy_soft_reset β€” software reset the PHY via BMCR_RESET bit

like… the name is the plot, fr fr. you're doing a soft reset on the PHY and the star of the show is that BMCR_RESET bit πŸ’…


🌸 SYNOPSIS 🌸

int genphy_soft_reset (struct phy_device *phydev );

look at her. one struct, one return type. clean. minimal. main character energy πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • phydev β€” target phy_device struct. yeah that's it, that's the whole vibe. she takes the phy_device you want to reset and gets to work πŸ¦‹

⭐ DESCRIPTION ⭐

so what she actually does: perform a software PHY reset using the standard BMCR_RESET bit, then poll for that reset bit to be cleared. πŸ‘‘

that's the whole thing. poke the bit, then wait around, checking and checking until it clears itself. it's giving "texting your bestie and refreshing the chat until she replies" energy honestly 😭 but like, in a hardware way. iconic.


πŸ“ RETURN πŸ“

  • 0 on success πŸ’–
  • < 0 on failure πŸ’€

that's it, that's the contract. zero is the slay outcome, anything negative means nope πŸ™ˆ


🌈 SEE ALSO 🌈

bestie there are SO many of these and I'm listing every single one because I would never do you dirty like that. go read them all, iykyk πŸ’œ

also! Kernel file ./drivers/net/phy/phy_device.c β€” that's where she lives 🏠


okay and one final thing before you go β€” this page is stamped from ./drivers/net/phy and dated October 2026 in the Kernel API Manual, so there's your credit line bestie 🧚 thank you for coming to my TED talk, go reset a PHY, and remember: the bit clears itself eventually. slay πŸ’…βœ¨

πŸ“¦ where this page comes from