提交 e6fbd47a 编写于 作者: L Lendacky, Thomas 提交者: David S. Miller

amd-xgbe: Fix mask appliciation for Clause 37 register

The application of a mask to clear an area of a clause 37 register value
was not properly applied. Update the code to do the proper application
of the mask.
Reported-by: NMarion &amp; Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 92547f2b
...@@ -943,8 +943,8 @@ static void xgbe_an37_init(struct xgbe_prv_data *pdata) ...@@ -943,8 +943,8 @@ static void xgbe_an37_init(struct xgbe_prv_data *pdata)
/* Set up the Control register */ /* Set up the Control register */
reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL); reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_CTRL);
reg &= XGBE_AN_CL37_TX_CONFIG_MASK; reg &= ~XGBE_AN_CL37_TX_CONFIG_MASK;
reg &= XGBE_AN_CL37_PCS_MODE_MASK; reg &= ~XGBE_AN_CL37_PCS_MODE_MASK;
switch (pdata->an_mode) { switch (pdata->an_mode) {
case XGBE_AN_MODE_CL37: case XGBE_AN_MODE_CL37:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册