[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/6] net: xilinx_axienet.c: Add phy soft reset bit cl
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 4/6] net: xilinx_axienet.c: Add phy soft reset bit clearing |
Date: |
Fri, 25 Apr 2014 16:09:38 +0200 |
From: Nathan Rossi <address@hidden>
Clear the BMCR Reset when writing to registers.
Signed-off-by: Nathan Rossi <address@hidden>
[ PC:
* Trivial style fixes to commit message
]
Signed-off-by: Peter Crosthwaite <address@hidden>
Reviewed-by: Beniamino Galvani <address@hidden>
Reviewed-by: Edgar E. Iglesias <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/net/xilinx_axienet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c
index 839d97c..0f485a0 100644
--- a/hw/net/xilinx_axienet.c
+++ b/hw/net/xilinx_axienet.c
@@ -142,6 +142,9 @@ tdk_write(struct PHY *phy, unsigned int req, unsigned int
data)
phy->regs[regnum] = data;
break;
}
+
+ /* Unconditionally clear regs[BMCR][BMCR_RESET] */
+ phy->regs[0] &= ~0x8000;
}
static void
--
1.9.0
- [Qemu-devel] [PULL 0/6] Net pull request, Stefan Hajnoczi, 2014/04/25
- [Qemu-devel] [PULL 1/6] tap: Avoid extra iterations while closing file fd, Stefan Hajnoczi, 2014/04/25
- [Qemu-devel] [PULL 2/6] pcnet: remove duplicate assignment, Stefan Hajnoczi, 2014/04/25
- [Qemu-devel] [PULL 6/6] net: Don't use error_is_set() to suppress additional errors, Stefan Hajnoczi, 2014/04/25
- [Qemu-devel] [PULL 4/6] net: xilinx_axienet.c: Add phy soft reset bit clearing,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 3/6] net/net.c: Remove unnecessary semicolon, Stefan Hajnoczi, 2014/04/25
- [Qemu-devel] [PULL 5/6] net: Make qmp_query_rx_filter() with name argument more obvious, Stefan Hajnoczi, 2014/04/25
- Re: [Qemu-devel] [PULL 0/6] Net pull request, Peter Maydell, 2014/04/28