]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: get default setting of WOL before initializing
authorHayes Wang <hayeswang@realtek.com>
Wed, 22 Jan 2020 08:02:07 +0000 (16:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 10:20:57 +0000 (11:20 +0100)
commitbad41effb61c3a8ea093df18f983e67ce2142474
treef54ffc89ad1f511d843c74f97432de40e0fe011c
parent1350f63111c5b803161ed34047951851ee633c03
r8152: get default setting of WOL before initializing

Initailization would reset runtime suspend by tp->saved_wolopts, so
the tp->saved_wolopts should be set before initializing.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c