]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 23:54:31 +0000 (16:54 -0700)
commita9b24b3583ae1da7dbda031f141264f2da260219
tree4cd0fbaa62e16ac683900e9d1ef3d693c5b61962
parentf6fa45d67e0546c114063c8b0acff48a0924738d
net: phy: realtek: add error handling to rtl8211f_get_wol

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>
drivers/net/phy/realtek/realtek_main.c