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>
77 KiB
77 KiB