diff options
| author | Oleksij Rempel <[email protected]> | 2024-12-16 12:09:41 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-18 03:51:55 +0000 |
| commit | 01e2f4d55bda0e24548e1458e77975898683a2cd (patch) | |
| tree | 0cd9ffcd72020137e89e12bccbadf3ef5efea1ac /drivers/pwm/pwm-stm32.c | |
| parent | net: usb: lan78xx: remove PHY register access from ethtool get_regs (diff) | |
| download | kernel-01e2f4d55bda0e24548e1458e77975898683a2cd.tar.gz kernel-01e2f4d55bda0e24548e1458e77975898683a2cd.zip | |
net: usb: lan78xx: Improve error handling in WoL operations
Enhance error handling in Wake-on-LAN (WoL) operations:
- Log a warning in `lan78xx_get_wol` if `lan78xx_read_reg` fails.
- Check and handle errors from `device_set_wakeup_enable` and
`phy_ethtool_set_wol` in `lan78xx_set_wol`.
- Ensure proper cleanup with a unified error handling path.
Signed-off-by: Oleksij Rempel <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions
