Patchwork [STABLE] pcnet: Restart poll timer on pcnet_start

login
register
mail settings
Submitter Jan Kiszka
Date Oct. 7, 2009, 4:19 p.m.
Message ID <4ACCBF9E.8050104@siemens.com>
Download mbox | patch
Permalink /patch/35313/
State Accepted
Commit ad323081aa0e20d3d573ea64e88a893d576c05e0
Headers show

Comments

Jan Kiszka - Oct. 7, 2009, 4:19 p.m.
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 <jan.kiszka@siemens.com>
---

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

Patch

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)