diff options
author | Edgar E. Iglesias | 2020-05-06 10:25:05 +0200 |
---|---|---|
committer | Edgar E. Iglesias | 2020-05-14 13:44:35 +0200 |
commit | 3e2a0cb99d26fd5fb34ab8c50f90d4292363245d (patch) | |
tree | 4f2ddfd46849f8a4747a85b08f5f78c3238556f0 /hw/net | |
parent | Merge remote-tracking branch 'remotes/gkurz/tags/9p-next-2020-05-14' into sta... (diff) | |
download | qemu-3e2a0cb99d26fd5fb34ab8c50f90d4292363245d.tar.gz qemu-3e2a0cb99d26fd5fb34ab8c50f90d4292363245d.tar.xz qemu-3e2a0cb99d26fd5fb34ab8c50f90d4292363245d.zip |
hw/net/xilinx_axienet: Auto-clear PHY Autoneg
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>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/xilinx_axienet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index 704788811a..0f97510d8a 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -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 |