Skip to content

Commit bd4060a

Browse files
ffainellidavem330
authored andcommitted
net: bcmgenet: Power on integrated GPHY in bcmgenet_power_up()
We are currently disabling the GPHY interface during bcmgenet_close(), and attempting to power it back on during bcmgenet_open(). This works fine for the first time, because we called bcmgenet_mii_config() which took care of enabling the interface, however, bcmgenet_power_up() really needs to power on the GPHY for correctness. This will be particularly important as we want to move bcmgenet_mii_probe() down to bcmgenet_open() to avoid seeing the "PHY already attached" message. Fixes: a642c4f ("net: bcmgenet: power up and down integrated GPHY when unused") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 978ffac commit bd4060a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/broadcom/genet/bcmgenet.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ static void bcmgenet_power_up(struct bcmgenet_priv *priv,
907907
}
908908

909909
bcmgenet_ext_writel(priv, reg, EXT_EXT_PWR_MGMT);
910+
if (mode == GENET_POWER_PASSIVE)
911+
bcmgenet_phy_power_set(priv->dev, true);
910912
}
911913

912914
/* ioctl handle special commands that are not present in ethtool. */

0 commit comments

Comments
 (0)