aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-06-08 09:53:56 -0400
committerDavid S. Miller <davem@davemloft.net>2019-06-09 23:05:19 -0400
commit283da99af1d8981b1fa075e9d002222b284fea0c (patch)
tree9b06d05a63d06185242e2c84db57790ecc51c5b1
parenta274ce0f311040ce188c53340c93120f52649519 (diff)
net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464
This puts the quad PHY ports in power-down mode when the PHY transitions to the PHY_HALTED state. It is likely that all the other PHYs support the BMCR_PDOWN bit, but I only have the BCM5464R to test. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/broadcom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 67fa05d67523..937d0059e8ac 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -663,6 +663,8 @@ static struct phy_driver broadcom_drivers[] = {
663 .config_init = bcm54xx_config_init, 663 .config_init = bcm54xx_config_init,
664 .ack_interrupt = bcm_phy_ack_intr, 664 .ack_interrupt = bcm_phy_ack_intr,
665 .config_intr = bcm_phy_config_intr, 665 .config_intr = bcm_phy_config_intr,
666 .suspend = genphy_suspend,
667 .resume = genphy_resume,
666}, { 668}, {
667 .phy_id = PHY_ID_BCM5481, 669 .phy_id = PHY_ID_BCM5481,
668 .phy_id_mask = 0xfffffff0, 670 .phy_id_mask = 0xfffffff0,