]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: bcmgenet: Request APD, DLL disable and IDDQ-SR
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 Sep 2021 21:54:17 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Sep 2021 09:58:35 +0000 (10:58 +0100)
When interfacing with a Broadcom PHY, request the auto-power down, DLL
disable and IDDQ-SR modes to be enabled.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c

index 2d29de9a33e3c7a21a850667e03173627cadaf14..ff1efd52ce16458b94b16f9748811e6f720b120c 100644 (file)
@@ -288,7 +288,9 @@ int bcmgenet_mii_probe(struct net_device *dev)
        struct device_node *dn = kdev->of_node;
        phy_interface_t phy_iface = priv->phy_interface;
        struct phy_device *phydev;
-       u32 phy_flags = 0;
+       u32 phy_flags = PHY_BRCM_AUTO_PWRDWN_ENABLE |
+                       PHY_BRCM_DIS_TXCRXC_NOENRGY |
+                       PHY_BRCM_IDDQ_SUSPEND;
        int ret;
 
        /* Communicate the integrated PHY revision */