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)
commit5050531610a64f08461e0c309db80ca51b779fd5
tree08bdc0df798fc6295d80aa912edb58f57a5f18ec
parent2bcbd3d8a7b4525cdb741fe82330edb6f5452c7f
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