mv88e6393x_g...gpio_set_smi(9)
π 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 π
- Kernel file
./drivers/net/dsa/mv88e6xxx/global2_scratch.cπ mv88e6xxx_g2_scratch_get_bit(9)mv88e6xxx_g2_scratch_set_bit(9)mv88e6352_g2_scratch_gpio_get_data(9)mv88e6352_g2_scratch_gpio_set_data(9)mv88e6352_g2_scratch_gpio_get_dir(9)mv88e6352_g2_scratch_gpio_set_dir(9)mv88e6352_g2_scratch_gpio_get_pctl(9)mv88e6352_g2_scratch_gpio_set_pctl(9)mv88e6390_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)mv88e6352_g2_scratch_port_has_serdes(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms