mv88e6393x_g...gpio_set_smi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mv88e6393x_g...gpio_set_smi(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's a kernel function page, section 9, and honestly? it's giving "small function, important job." no cap. let's get into it 🫢


✨ NAME ✨

mv88e6393x_g2_scratch_gpio_set_smi β€” like, the whole point of this function is to set gpio muxing for external smi. that's it, that's the vibe. πŸŽ€


🌸 SYNOPSIS 🌸

int mv88e6393x_g2_scratch_gpio_set_smi (struct mv88e6xxx_chip *chip ,
bool external );

yep, that's the signature, keep it exactly like that, she's iconique πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • chip β€” chip private data. it's the chip's own lil personal stash of info, main character energy ✨
  • external β€” set mux for external smi, or free for gpio usage. so you're either like "go be an SMI interface bestie" or "okay back to regular GPIO duty for you" πŸ”₯

🧚 DESCRIPTION 🧚

okay so here's the lore πŸ“

MV88E6191X/6193X/6393X GPIO pins 9 and 10 can be configured as an external SMI interface or as regular GPIO-s. literally the same two pins, two whole personalities. choose wisely 😭

they however have a different register layout then the existing function. so yeah β€” not the same as the older ones, don't @ me, it's just built different πŸ’€ (and that's exactly why this separate function exists, iykyk)


πŸ‘‘ SEE ALSO πŸ‘‘

go read the whole squad, they're all slaying in their own way πŸ‘‘


fr fr always double-check which mode those pins are in before you touch anything β€” muxing is forever (until you set it back) πŸ’€

that's the whole page!! this gorgeous thing lives in the kernel tree at ./drivers/net/dsa/mv88e6xxx, dated October 2026 β€” and it's page mv88e6393x_g...gpio_set_smi(9) of the Kernel API Manual. bye bestie, go mux responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from