]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: Implement suspend/resume for AC131 and BCM5241
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 15 Aug 2022 19:07:47 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2022 10:49:23 +0000 (11:49 +0100)
commit2a311cc462a253e97eb4dd04ccadfb2a0eb8ad20
treeded03f9554c57c70729b1e6cd4abb34ce3ce9913
parent27cffdc8bc534538bc20946a6cebd53f4eba8043
net: phy: broadcom: Implement suspend/resume for AC131 and BCM5241

Implement the suspend/resume procedure for the Broadcom AC131 and BCM5241 type
of PHYs (10/100 only) by entering the standard power down followed by the
proprietary standby mode in the auxiliary mode 4 shadow register. On resume,
the PHY software reset is enough to make it come out of standby mode so we can
utilize brcm_fet_config_init() as the resume hook.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h