Files
kernel/include/linux/phy.h
Christian Marangi 2caa8762ad net: phy: add PHY_DETACH_NO_HW_RESET PHY flag
Some PHY require a firmware to correctly work and such firmware might
get reset when the GPIO reset is assert.

This is the case for the Aeonsemi PHY where when the PHY is torn down,
phy_detach() is called that assert the GPIO reset pin resetting the
firmware.

To handle this introduce a flag, PHY_DETACH_NO_HW_RESET that instruct
phy_detach() to skip asserting the GPIO reset on detaching the PHY.

The PHY is still reset in all other case where it's removed or the PHY
fails to probe.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-11-10 20:27:06 -03:00

77 KiB