From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8XEO-0002CV-GB for qemu-devel@nongnu.org; Tue, 27 Sep 2011 08:57:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8XEK-0000Mh-0k for qemu-devel@nongnu.org; Tue, 27 Sep 2011 08:57:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8XEJ-0000MU-LO for qemu-devel@nongnu.org; Tue, 27 Sep 2011 08:57:47 -0400 Date: Tue, 27 Sep 2011 15:58:40 +0300 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/2] e1000: reset handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Andy Gospodarek , Dean Nelson , Jesse Brandeburg , Jeff Kirsher Cc: peter.maydell@linaro.org, Anthony Liguori , "Michael S. Tsirkin" , Alex Williamson , Anthony PERARD , Kevin Wolf , Aurelien Jarno Here's a fix for e1000 reset as suggested by Andy Gospodarek and Anthony PERARD, written in a way that doesn't require forward declarations, and with reset clearing interrupts. Changes from v1: - value written was stored in CTRL register so it will be non 0 after reset. Notes: some internal state: uint32_t rxbuf_size; int check_rxov; isn't cleared in reset need to check that it's ok. -- MST