Skip to contentSkip to conversation

pcnet: Restart poll timer on pcnet_start

PATCH New Jan Kiszka 1 participant 1 message Oct 7, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 pcnet: Restart poll timer on pcnet_start

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.

---

 hw/pcnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/pcnet.c +1 -0
index ee0c98c..69d4406 100644
@@ -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)