[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] pcnet: Preserve link state across device reset
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 4/6] pcnet: Preserve link state across device reset |
Date: |
Fri, 27 Jan 2012 07:28:00 +0000 |
From: Jan Kiszka <address@hidden>
A device reset does not affect the link state, only set_link does.
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/pcnet.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 306dc6e..6aa48e0d 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -688,7 +688,6 @@ static void pcnet_s_reset(PCNetState *s)
printf("pcnet_s_reset\n");
#endif
- s->lnkst = 0x40;
s->rdra = 0;
s->tdra = 0;
s->rap = 0;
@@ -1751,5 +1750,7 @@ int pcnet_common_init(DeviceState *dev, PCNetState *s,
NetClientInfo *info)
}
*(uint16_t *)&s->prom[12] = cpu_to_le16(checksum);
+ s->lnkst = 0x40; /* initial link state: up */
+
return 0;
}
--
1.7.8.3
- [Qemu-devel] [PULL 0/6] Trivial patches for 20 to 27 January 2012, Stefan Hajnoczi, 2012/01/27
- [Qemu-devel] [PATCH 2/6] qdev-property: Make bit property parsing stricter, Stefan Hajnoczi, 2012/01/27
- [Qemu-devel] [PATCH 1/6] remove #if 0 code for timers, Stefan Hajnoczi, 2012/01/27
- [Qemu-devel] [PATCH 3/6] e1000: Preserve link state across device reset, Stefan Hajnoczi, 2012/01/27
- [Qemu-devel] [PATCH 4/6] pcnet: Preserve link state across device reset,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 5/6] ./configure: export xfs config via --{enable, disable}-xfsctl, Stefan Hajnoczi, 2012/01/27
- Re: [Qemu-devel] [PULL 0/6] Trivial patches for 20 to 27 January 2012, Anthony Liguori, 2012/01/27