Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe Leroy and committed by
David S. Miller
5556fdb0 136bf27f

+6
+6
drivers/net/phy/lxt.c
··· 262 262 /* PHY_BASIC_FEATURES */ 263 263 .ack_interrupt = lxt971_ack_interrupt, 264 264 .config_intr = lxt971_config_intr, 265 + .suspend = genphy_suspend, 266 + .resume = genphy_resume, 265 267 }, { 266 268 .phy_id = 0x00137a10, 267 269 .name = "LXT973-A2", ··· 273 271 .probe = lxt973_probe, 274 272 .config_aneg = lxt973_config_aneg, 275 273 .read_status = lxt973a2_read_status, 274 + .suspend = genphy_suspend, 275 + .resume = genphy_resume, 276 276 }, { 277 277 .phy_id = 0x00137a10, 278 278 .name = "LXT973", ··· 283 279 .flags = 0, 284 280 .probe = lxt973_probe, 285 281 .config_aneg = lxt973_config_aneg, 282 + .suspend = genphy_suspend, 283 + .resume = genphy_resume, 286 284 } }; 287 285 288 286 module_phy_driver(lxt97x_driver);