]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: realtek: add error handling to rtl8211f_get_wol
authorDaniel Braunwarth <daniel.braunwarth@kuka.com>
Tue, 24 Jun 2025 14:17:33 +0000 (16:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:15 +0000 (18:41 +0200)
commitdd66914be8a0160c069a2f8470ccf7a6441e9958
tree2c00bb519ddca4d385d61bebfde835708dd2b68b
parent9bb91149c4e695343c8e316d3bb82435d2097056
net: phy: realtek: add error handling to rtl8211f_get_wol

[ Upstream commit a9b24b3583ae1da7dbda031f141264f2da260219 ]

We should check if the WOL settings was successfully read from the PHY.

In case this fails we cannot just use the error code and proceed.

Signed-off-by: Daniel Braunwarth <daniel.braunwarth@kuka.com>
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Closes: https://lore.kernel.org/baaa083b-9a69-460f-ab35-2a7cb3246ffd@nvidia.com
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250624-realtek_fixes-v1-1-02a0b7c369bc@kuka.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/realtek/realtek_main.c