Skip to content

Commit

Permalink
hw/net/xilinx_axienet: Auto-clear PHY Autoneg
Browse files Browse the repository at this point in the history
Auto-clear PHY CR Autoneg bits. This makes this model
work with recent Linux kernels.

Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-Id: <20200506082513.18751-2-edgar.iglesias@gmail.com>
  • Loading branch information
edgarigl committed May 14, 2020
1 parent 035b448 commit 3e2a0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/net/xilinx_axienet.c
Expand Up @@ -149,8 +149,8 @@ tdk_write(struct PHY *phy, unsigned int req, unsigned int data)
break;
}

/* Unconditionally clear regs[BMCR][BMCR_RESET] */
phy->regs[0] &= ~0x8000;
/* Unconditionally clear regs[BMCR][BMCR_RESET] and auto-neg */
phy->regs[0] &= ~0x8200;
}

static void
Expand Down

0 comments on commit 3e2a0cb

Please sign in to comment.