r8169: improve handling D3 PLL power-down
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 10 Jan 2021 19:50:08 +0000 (20:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 01:01:17 +0000 (17:01 -0800)
commit128735a1530ec92254ddc211cbc796f5fca3b501
treed1be5947cb5fe937133bbe3a2f6bab22dbc85146
parent9224d97183d9b1e773f11b1c0d8065023ae3c260
r8169: improve handling D3 PLL power-down

Realtek provided a description of bits 6 and 7 in register PMCH.
They configure whether the chip powers down certain PLL in D3hot and
D3cold respectively. They do not actually power down the PLL.
Reflect this in the code and configure D3 PLL powerdown based on
whether WOL is enabled.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c