]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: avoid the MCU to clear the lanwake
authorHayes Wang <hayeswang@realtek.com>
Wed, 22 Jan 2020 08:02:12 +0000 (16:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 10:20:57 +0000 (11:20 +0100)
commit48a4abd16385700943ccdf3364bd41e2263ef1c1
treede5ed761ebe5f8ffcfd522e0be61191c07f788ef
parent4bbb43d8c924f14445451ec93bec99be72e7aeae
r8152: avoid the MCU to clear the lanwake

Avoid the MCU to clear the lanwake after suspending. It may cause the
WOL fail. Disable LANWAKE_CLR_EN before suspending. Besides,enable it
and reset the lanwake status when resuming or initializing.

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