提交 e1a083be 编写于 作者: G Ganesan Ramalingam 提交者: Greg Kroah-Hartman

Staging: Netlogic: PHY address calculation fix

SGMII PHY address calculation should be based on phy_addr of priv data
Signed-off-by: NGanesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b9add4c3
......@@ -775,7 +775,7 @@ static void xlr_sgmii_init(struct xlr_net_priv *priv)
xlr_nae_wreg(priv->gpio_addr, 0x21, 0x7104);
/* enable autoneg - more magic */
phy = priv->port_id % 4 + 27;
phy = priv->phy_addr % 4 + 27;
xlr_phy_write(priv->pcs_addr, phy, 0, 0x1000);
xlr_phy_write(priv->pcs_addr, phy, 0, 0x0200);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册