mv88e6352_g2...pio_set_data(9)
β¨ NAME β¨
mv88e6352_g2_scratch_gpio_set_data β bestie, this is the one that sets data on a gpio pin π
πΈ SYNOPSIS πΈ
int mv88e6352_g2_scratch_gpio_set_data (struct mv88e6xxx_chip *chip ,
unsigned int pin , int value );
okay so it returns an int, and it takes three things: a struct mv88e6xxx_chip * called chip, an unsigned int called pin, and an int called value. that's the whole vibe π«Ά
π ARGUMENTS π
chipβ the chip's private data, like its little diary of state ποΈpinβ the gpio index, aka which pin we're talking about β¨valueβ the value to set, literally the thing you're setting π₯
π¦ SEE ALSO π¦
the kernel file lives right here, no cap:
./drivers/net/dsa/mv88e6xxx/global2_scratch.c
and here's the whole friend group, all section 9, all iconic π:
mv88e6xxx_g2_scratch_get_bit(9)mv88e6xxx_g2_scratch_set_bit(9)mv88e6352_g2_scratch_gpio_get_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)mv88e6393x_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)mv88e6352_g2_scratch_port_has_serdes(9)
ngl if you're reading this page you probably wanted get_data and got lost β but hey, you're here now, and the pin is gonna be so set π
okay that's the whole page!! source path ./drivers/net/dsa/mv88e6xxx, dated October 2026, section 9 β mwah, go set some gpio data 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