OSDN Git Service

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)
commit0630f64d25a0f0a8c6a9ce9fde8750b3b561e6f5
treeded03f9554c57c70729b1e6cd4abb34ce3ce9913
parent95657e6a4b5411c7fa074e0459bf081f8c117537
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