From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSrbs-0007nL-3Z for qemu-devel@nongnu.org; Thu, 07 Jan 2010 07:37:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSrbn-0007jy-HF for qemu-devel@nongnu.org; Thu, 07 Jan 2010 07:37:03 -0500 Received: from [199.232.76.173] (port=35378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSrbn-0007jl-BM for qemu-devel@nongnu.org; Thu, 07 Jan 2010 07:36:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28299) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSrbm-0000Nl-Rb for qemu-devel@nongnu.org; Thu, 07 Jan 2010 07:36:59 -0500 Date: Thu, 7 Jan 2010 14:34:01 +0200 From: "Michael S. Tsirkin" Message-ID: <20100107123400.GE599@redhat.com> References: <4B45C209.1030802@mail.berlios.de> <1262862925-5205-1-git-send-email-weil@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1262862925-5205-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] Re: [PATCH] eepro100: Fix initial value for PCI_STATUS List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org On Thu, Jan 07, 2010 at 12:15:25PM +0100, Stefan Weil wrote: > The numerical value was wrong (0x2800 instead of 0x0280) > which indeed did not make sense. Aha! conversion to symbolic names paying off. > Signed-off-by: Stefan Weil Applied, thanks. > --- > hw/eepro100.c | 4 +--- > 1 files changed, 1 insertions(+), 3 deletions(-) > > diff --git a/hw/eepro100.c b/hw/eepro100.c > index 336ca49..a21c984 100644 > --- a/hw/eepro100.c > +++ b/hw/eepro100.c > @@ -420,10 +420,8 @@ static void pci_reset(EEPRO100State * s) > /* TODO: this is the default, do not override. */ > PCI_CONFIG_16(PCI_COMMAND, 0x0000); > /* PCI Status */ > - /* TODO: this seems to make no sense. */ > /* TODO: Value at RST# should be 0. */ So this second todo can go too. I've removed it in my tree. > - PCI_CONFIG_16(PCI_STATUS, > - PCI_STATUS_REC_MASTER_ABORT | PCI_STATUS_SIG_TARGET_ABORT); > + PCI_CONFIG_16(PCI_STATUS, PCI_STATUS_DEVSEL_MEDIUM | PCI_STATUS_FAST_BACK); > /* PCI Revision ID */ > PCI_CONFIG_8(PCI_REVISION_ID, 0x08); BTW if you are not afraid of churn, there's no reason for PCI_CONFIG_8 and friends anymore, because pci.h has much nicer pci_set_byte etc. > /* TODO: this is the default, do not override. */ > -- > 1.6.5