mv88e6352_g2...pio_get_pctl(9)
π NAME π
mv88e6352_g2_scratch_gpio_get_pctl β bestie, it gets the pin control setting β¨
So like, this is one of those Kernel API Manual pages (section 9, iykyk) and honestly? It's a little icon and it does exactly one thing: reads the pctl of a pin. Periodt.
π¦ SYNOPSIS π¦
int mv88e6352_g2_scratch_gpio_get_pctl (struct mv88e6xxx_chip *chip ,
unsigned int pin , int *func );
π ARGUMENTS π
chipβ the chip private data, aka the main character of this whole operation πpinβ the gpio index, so you know which pin we're talking about, no capfuncβ the function number, where the answer lands π«Ά
πΈ DESCRIPTION πΈ
Okay so real talk: the function numbers themselves may vary by chipset. Not me guessing β that's literally what the page says, so don't come for me if your chipset's numbering is giving different vibes π
Also highkey important: this thing gets the pin control setting. It does not set it. If you wanted to set it, wrong function bestie, keep scrolling to the set_pctl one down in SEE ALSO π
β 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_set_pctl(9)mv88e6390_g2_scratch_gpio_set_smi(9)mv88e6393x_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)mv88e6352_g2_scratch_port_has_serdes(9)
Like, the whole friend group is here fr fr β go read the rest of them, they ate π
Quick reminder boo: this page lives at ./drivers/net/dsa/mv88e6xxx, and it's dated October 2026. Screenshot it, cite it, whatever β just don't say I didn't tell you π
And that's the whole page bestie, mwah π go get that pin control setting and slay β¨π§ββοΈπ
π¦ 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