lan78xx_mac_eee_enable(9)
π lan78xx_mac_eee_enable π
okay so bestie, welcome to the lan78xx_mac_eee_enable(9) page β it's a kernel API manual entry, and honestly? it's giving "small function, big job." Let's get into it π«Ά
β¨ NAME β¨
lan78xx_mac_eee_enable β literally the function that turns MAC-side EEE support on or off. That's it, that's the whole vibe πΈ
π¦ SYNOPSIS π¦
int lan78xx_mac_eee_enable (struct lan78xx_net *dev , bool enable );
no cap, that's the whole signature β copy it exactly, don't be cute with it π
π ARGUMENTS π
devβ your LAN78xx device, the main character of this whole operation πenableβ passtrueto enable EEE, orfalseto disable it. yes queen, you're the one in charge here β
π DESCRIPTION π
So what does this actually do? It sets or clears the MAC_CR_EEE_EN_ bit, and that bit is what controls Energy Efficient Ethernet (EEE) operation π
And here's the lowkey interesting part: according to the current understanding of the LAN7800 documentation, this bit can be modified while TX and RX are enabled. Like, you don't have to shut everything down first. And ngl, no explicit requirement was found to disable the data paths before changing this bit β so fr fr, that's where things stand based on what's documented right now π¦
just to be clear bestie β this is "according to current understanding" of the docs, and "no explicit requirement was found." it's not a promise that nothing can ever go weird, it's just what the documentation says π
π₯ RETURN π₯
0on success π- a negative error code if it doesn't slay π
π SEE ALSO π
the kernel file ./drivers/net/usb/lan78xx.c and these iconic siblings:
lan78xx_phy_int_ack(9)lan78xx_configure_usb(9)lan78xx_configure_flowcontrol(9)lan78xx_set_fixed_link(9)lan78xx_get_phy(9)lan78xx_mac_prepare_for_phy(9)lan78xx_configure_leds_from_dt(9)
and that's the page, bestie!! this one lives in ./drivers/net/usb, dated October 2026 β go off, read the source, and remember: the bit is MAC_CR_EEE_EN_ and you're the one flipping it π
β¨π
π¦ 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