mv88e6352_g...atch_config3(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ok so bestie, this one's called mv88e6352_g2_cache_global_scratch_config3 and what it does is literally cache the G2 CONFIG3 value. that's it. that's the whole vibe. (we're in the Kernel API Manual btw, section 9, drivers-and-kernel-nerdery territory, welcome 🫢)


✨ SYNOPSIS ✨

int mv88e6352_g2_cache_global_scratch_config3 (struct mv88e6xxx_chip *chip );

like, you hand it a chip and it gives you back an int. simple. iconic. no notes. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” chip private data. that's the tea. the whole struct. she contains multitudes πŸ’–

🌸 DESCRIPTION 🌸

okay so picture this: this function reads and stores the config3 value of the global2 scratch registers. and why do we care?? because that value is what you use to figure out whether the port is attached to a serdes. iykyk πŸ”₯

and here's the cute part β€” the value does not change once the switch is released from reset. like, she's locked in. periodt. it represents the value of the pin strapping, so whatever the hardware was strapped to at boot time is what you're getting forever. no cap. πŸŽ€


πŸ¦‹ RETURN πŸ¦‹

  • negative error number if the register read fails 😭 (sad girl hours)
  • otherwise, 0 ✨ slay, we love a success

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/net/dsa/mv88e6xxx/global2_scratch.c β€” go read her, she's giving main character energy πŸ“–

and the whole friend group:


ok that's the whole page bestie, go cache some configs, ily, drink water πŸ’œ

anyway this lil slice of kernel lore comes to you courtesy of ./drivers/net/dsa/mv88e6xxx, dated October 2026, and it's filed under mv88e6352_g...atch_config3(9) β€” yes the truncation is real, no i can't fix it, she is who she is πŸ’…βœ¨

πŸ“¦ where this page comes from