mv88e6352_g2...t_has_serdes(9)
β¨ mv88e6352_g2_scratch_port_has_serdes β NAME β¨
okay so this is a page from the Kernel API Manual (yes, the mv88e6352_g2...t_has_serdes(9) one, we love a truncated title bestie π
π«Ά) and it's literally about one little function:
mv88e6352_g2_scratch_port_has_serdes β tells you whether a port has a serdes or not π
π¦ SYNOPSIS π¦
int mv88e6352_g2_scratch_port_has_serdes (struct mv88e6xxx_chip *chip ,
int port );
that's it, that's the whole vibe check πΈ
π ARGUMENTS π
chipβ the chip private data. it's giving "main character struct" ngl πportβ the port number we're checking for serdes π
π DESCRIPTION π
so basically this function indicates whether the port may have a serdes attached, according to the pin strapping β and that strapping? it's cached at reset (that's scratch config3, iykyk β¨).
Here's the tea on what it returns β:
- returns
0if the port is not configured to have a serdes π - returns
1if the port is configured to have a serdes attached π₯
no cap, that's the whole story. lowkey iconic for how tiny it is.
π SEE ALSO π
like, go read these next, they're all in the same orbit π§:
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)mv88e6393x_g2_scratch_gpio_set_smi(9)mv88e6352_g2_cache_global_scratch_config3(9)
fr fr read them all, they're friends of the function, don't leave them on read π
π₯Ί and that's the page!! source/version vibes: ./drivers/net/dsa/mv88e6xxx, dated October 2026, originally filed under mv88e6352_g2...t_has_serdes(9) β mwah, bye 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