mv88e6390_g...gpio_set_smi(9)
π mv88e6390_g2_scratch_gpio_set_smi β okay bestie, let's talk
So this is a page straight out of the Kernel API Manual, and the star of the show is literally called mv88e6390_g2_scratch_gpio_set_smi. Iconic name, no notes. Grab a snack, we're configuring GPIO muxing for an external SMI π¦
β¨ NAME β¨
mv88e6390_g2_scratch_gpio_set_smi β sets up the gpio muxing for external smi, periodt.
πΈ SYNOPSIS πΈ
int mv88e6390_g2_scratch_gpio_set_smi (struct mv88e6xxx_chip *chip ,
bool external );
That's the whole vibe: one int coming back at you, a struct mv88e6xxx_chip * and a bool. Clean, minimal, main character energy π
π ARGUMENTS π
chipβ the chip private data. Like, the chip's personal little diary of state. Bestie, it's private for a reason πexternalβ here's the fork in the road: set the mux for external smi, or free it up for gpio usage. Pick a lane π
π¦ DESCRIPTION π¦
okay so here's the situation. Some mv88e6xxx models have these GPIO pins, right? And those pins are lowkey flexible like that:
- they may be configured as an external SMI interface, or
- they may be made free for other GPIO uses π₯
That's it. That's the whole function's job. It's giving "tiny but crucial." β¨
π SEE ALSO π
The kernel file lives right here, bestie, go read the source: ./drivers/net/dsa/mv88e6xxx/global2_scratch.c
And the whole friend group β every one of them, no cap:
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)mv88e6393x_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)mv88e6352_g2_scratch_port_has_serdes(9)
iykyk π«Ά
okay that's the page!! π This lil masterpiece ships from ./drivers/net/dsa/mv88e6xxx, dated October 2026, and it answers to the name mv88e6390_g...gpio_set_smi(9) β yes the name's truncated in the header, she's mysterious like that π go set some muxes, bestie πβ
π¦ 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