From 5337e233d5870a7bef0f337875daebd0c3f9abcb Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 7 Oct 2025 14:26:26 +0100 Subject: [PATCH] NVIDIA: SAUCE: net: phy: realtek: Fix RTL8211F suspend When integrating WoL support for the RTL8211F device, a duplicated suspend entry was added for this device. The difference between the rtl821x_suspend() and the genphy_suspend() functions is that the rtl821x_suspend() will only call genphy_suspend() and disable clocks if WoL is not enabled. Therefore, remove the duplicated suspend entry that calls genphy_suspend() to ensure the PHY is not suspend if WoL is enabled. Bug 200562291 Change-Id: I9d5be01d46ee63caba9c6817b910283bf2fac69c Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-noble/+/3464990 (cherry picked from commit ca29769be9997f8196e0a2209e40a134c344807a) Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-noble/+/3469208 GVS: buildbot_gerritrpt Reviewed-by: Brad Griffis --- drivers/net/phy/realtek.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index ae696ad231b4..8e96c5060dc7 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -1137,7 +1137,6 @@ static struct phy_driver realtek_drvs[] = { .get_wol = &rtl8211f_get_wol, .set_wol = &rtl8211f_set_wol, .suspend = rtl821x_suspend, - .suspend = genphy_suspend, .resume = rtl821x_resume, .read_page = rtl821x_read_page, .write_page = rtl821x_write_page,