From patchwork Wed Oct 7 16:19:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 35313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2B978B7B8B for ; Thu, 8 Oct 2009 03:22:16 +1100 (EST) Received: from localhost ([127.0.0.1]:36353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvZHJ-0002UN-5d for incoming@patchwork.ozlabs.org; Wed, 07 Oct 2009 12:22:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvZF1-0001hW-Bk for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:19:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvZEw-0001fV-Gl for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:19:51 -0400 Received: from [199.232.76.173] (port=56963 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvZEw-0001fR-CX for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:19:46 -0400 Received: from goliath.siemens.de ([192.35.17.28]:21724) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvZEv-0001Aj-O5 for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:19:46 -0400 Received: from mail3.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n97GJgP8013113 for ; Wed, 7 Oct 2009 18:19:42 +0200 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail3.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n97GJg0T004458 for ; Wed, 7 Oct 2009 18:19:42 +0200 Message-ID: <4ACCBF9E.8050104@siemens.com> Date: Wed, 07 Oct 2009 18:19:42 +0200 From: Jan Kiszka 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 MIME-Version: 1.0 To: qemu-devel X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Subject: [Qemu-devel] [STABLE][PATCH] pcnet: Restart poll timer on pcnet_start X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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)