qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [STABLE][PATCH] pcnet: Restart poll timer on pcnet_start


From: Jan Kiszka
Subject: [Qemu-devel] [STABLE][PATCH] pcnet: Restart poll timer on pcnet_start
Date: Wed, 07 Oct 2009 18:19:42 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Just like we call into pcnet_poll_timer on stop, we need to call it on
start to trigger the setup of the poll timer.

Signed-off-by: Jan Kiszka <address@hidden>
---

 hw/pcnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/pcnet.c b/hw/pcnet.c
index ee0c98c..69d4406 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -935,6 +935,7 @@ static void pcnet_start(PCNetState *s)
 
     s->csr[0] &= ~0x0004;       /* clear STOP bit */
     s->csr[0] |= 0x0002;
+    pcnet_poll_timer(s);
 }
 
 static void pcnet_stop(PCNetState *s)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]