net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 23 May 2019 08:55:32 +0000 (08:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 16:19:21 +0000 (09:19 -0700)
commit5556fdb0c2ea3a9ae18e2c457a25198673761ff7
tree6a170771b0e373f83d574e6fb2abd95cfdf3ec3e
parent136bf27fc0e9376525b9b6d9a1aa08508a0d1ac2
net: phy: lxt: Add suspend/resume support to LXT971 and LXT973.

All LXT PHYs implement the standard "power down" bit 11 of
BMCR, so this patch adds support using the generic
genphy_{suspend,resume} functions added by
commit 0f0ca340e57b ("phy: power management support").

LXT970 is left aside because all registers get cleared upon
"power down" exit.

Reviewed-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/lxt.c