]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: ax88179_178a: wol optimizations
authorJustin Chen <justinpopo6@gmail.com>
Thu, 21 Jul 2022 00:28:16 +0000 (17:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jul 2022 04:43:59 +0000 (21:43 -0700)
commitb9debd252897861815809f9a27b5a833add588ba
tree08bdc0df798fc6295d80aa912edb58f57a5f18ec
parentc56f4235adad007ec32d2083b48f070a19c9ce70
net: usb: ax88179_178a: wol optimizations

- 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>
drivers/net/usb/ax88179_178a.c