r8152: get default setting of WOL before initializing
authorHayes Wang <hayeswang@realtek.com>
Wed, 22 Jan 2020 08:02:07 +0000 (16:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 14:43:51 +0000 (14:43 +0000)
commit97f0fcaf0da0a519e79e607d77143e3034d3aed1
treed7af0ba12958d88c2038a7733547304e839c1cae
parentc82866b251d7587d5f7bdad43ad5adf9395ae716
r8152: get default setting of WOL before initializing

[ Upstream commit 9583a3638dc07cc1878f41265e85ed497f72efcb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/r8152.c