]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: usb: ax88179_178a: wol optimizations
authorJustin Chen <justinpopo6@gmail.com>
Thu, 21 Jul 2022 00:28:16 +0000 (17:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:13:38 +0000 (15:13 +0100)
commitf860413aa00c4e1fbdf3508ea3131e602457c73b
tree696ac8c6679bb3431a6e0e659b3f943cfe9df287
parent2964a0de752695b02d3d7089cece3e98f1c103cb
net: usb: ax88179_178a: wol optimizations

[ Upstream commit 5050531610a64f08461e0c309db80ca51b779fd5 ]

- Check if wol is supported on reset instead of everytime get_wol
is called.
- Save wolopts in private data instead of relying on the HW to save it.
- Defer enabling WoL until suspend instead of enabling it everytime
set_wol is called.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: aef05e349bfd ("net: usb: ax88179_178a: avoid failed operations when device is disconnected")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/ax88179_178a.c