]> 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)
commitca8e7a3883b38844b992d7514ccbf529c2b54729
tree08bdc0df798fc6295d80aa912edb58f57a5f18ec
parent01a6108951bdc39805981d3cb5dae72874aec36f
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