From 16cf0b2b343d0bce1ab69ca14c898b3406234f80 Mon Sep 17 00:00:00 2001 From: Prasad Joshi Date: Sun, 23 Mar 2014 14:58:40 +0530 Subject: pcnet: remove duplicate assignment Signed-off-by: Prasad Joshi Signed-off-by: Stefan Hajnoczi --- hw/net/pcnet.c | 1 - 1 file changed, 1 deletion(-) (limited to 'hw') diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c index 7cb47b3..ebe5057 100644 --- a/hw/net/pcnet.c +++ b/hw/net/pcnet.c @@ -718,7 +718,6 @@ static void pcnet_s_reset(PCNetState *s) s->csr[94] = 0x0000; s->csr[100] = 0x0200; s->csr[103] = 0x0105; - s->csr[103] = 0x0105; s->csr[112] = 0x0000; s->csr[114] = 0x0000; s->csr[122] = 0x0000; -- cgit v1.1 From f663faac3e2e9d9134415f75d429ae30432e6038 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 8 Apr 2014 18:52:39 -0700 Subject: net: xilinx_axienet.c: Add phy soft reset bit clearing Clear the BMCR Reset when writing to registers. Signed-off-by: Nathan Rossi [ PC: * Trivial style fixes to commit message ] Signed-off-by: Peter Crosthwaite Reviewed-by: Beniamino Galvani Reviewed-by: Edgar E. Iglesias Signed-off-by: Stefan Hajnoczi --- hw/net/xilinx_axienet.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw') 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 -- cgit v1.1