ks8851_soft_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ks8851_soft_reset(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for ks8851_soft_reset(9) β€” it's the lil function that issues one of the soft reset commands to the device, and we're gonna go through every single detail together 🫢✨


🌸 NAME 🌸

ks8851_soft_reset β€” issue one of the soft reset to the device πŸ’… literally reset-button energy, but make it kernel

✨ SYNOPSIS ✨

void ks8851_soft_reset (struct ks8851_net *ks , unsigned op );

That's the whole signature, no cap. ks is the device state and op is the bit(s) to set in the GRR β€” more on those right below πŸ‘‡

πŸŽ€ ARGUMENTS πŸŽ€

  • ks β€” The device state. Yes bestie, that's the struct ks8851_net *ks; it's the device's whole state situation πŸ’–
  • op β€” The bit(s) to set in the GRR. So this is where you tell it which reset bits are going into the GRR ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so what it does: it issues the relevant soft-reset command to the device's GRR register, specified by op. Slay. πŸ’…

The delays are in there as a caution to ensure that the reset has time to take effect and then complete. Since the datasheet does not currently specify the exact sequence, they've chosen something that seems to work with our device. And honestly? If it works with our device, we're not questioning it 😭🫢

No cap, that's the whole description β€” no extra lore, bestie.

🌈 SEE ALSO 🌈

Kernel file: ./drivers/net/ethernet/micrel/ks8851_common.c β€” go read it bestie, it's giving source-code main character energy πŸ‘‘βœ¨

And the whole function squad:


mwah πŸ’‹ that's the manual, bestie β€” source/version: ./drivers/net/ethernet/micrel β€’ date: October 2026 β€’ page: ks8851_soft_reset(9). Periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from