From patchwork Tue Dec 21 10:58:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Herbszt X-Patchwork-Id: 76275 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 04C7DB7063 for ; Tue, 21 Dec 2010 22:06:49 +1100 (EST) Received: from localhost ([127.0.0.1]:41018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUzyb-0002Iq-BG for incoming@patchwork.ozlabs.org; Tue, 21 Dec 2010 06:01:53 -0500 Received: from [140.186.70.92] (port=39747 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUzvz-0001FJ-4X for qemu-devel@nongnu.org; Tue, 21 Dec 2010 05:59:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUzvx-0008CM-VS for qemu-devel@nongnu.org; Tue, 21 Dec 2010 05:59:10 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:47446 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PUzvx-0008CB-5b for qemu-devel@nongnu.org; Tue, 21 Dec 2010 05:59:09 -0500 Received: (qmail invoked by alias); 21 Dec 2010 10:59:08 -0000 Received: from g226049212.adsl.alicedsl.de (HELO opensuse112) [92.226.49.212] by mail.gmx.net (mp032) with SMTP; 21 Dec 2010 11:59:08 +0100 X-Authenticated: #310364 X-Provags-ID: V01U2FsdGVkX1972IBYi7d77Egcq2uSST1c2UzvXJAjmpQzUuSZZK Z+9npLCBs0Qz3C X-Mailer: gregkh_patchbomb modified Date: Tue, 21 Dec 2010 11:58:56 +0100 Message-Id: <1292929136$1479@local> Mime-Version: 1.0 To: qemu-devel@nongnu.org From: Sebastian Herbszt X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Sebastian Herbszt Subject: [Qemu-devel] [PATCH] xio3130: use pci_config_set_revision() 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 Use pci_config_set_revision(). Signed-off-by: Sebastian Herbszt diff --git a/hw/xio3130_downstream.c b/hw/xio3130_downstream.c index 1a2d258..fe16475 100644 --- a/hw/xio3130_downstream.c +++ b/hw/xio3130_downstream.c @@ -71,7 +71,7 @@ static int xio3130_downstream_initfn(PCIDevice *d) pcie_port_init_reg(d); pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_TI); pci_config_set_device_id(d->config, PCI_DEVICE_ID_TI_XIO3130D); - d->config[PCI_REVISION_ID] = XIO3130_REVISION; + pci_config_set_revision(d->config, XIO3130_REVISION); rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, XIO3130_MSI_SUPPORTED_FLAGS & PCI_MSI_FLAGS_64BIT, diff --git a/hw/xio3130_upstream.c b/hw/xio3130_upstream.c index 387bf6c..bd2b452 100644 --- a/hw/xio3130_upstream.c +++ b/hw/xio3130_upstream.c @@ -67,7 +67,7 @@ static int xio3130_upstream_initfn(PCIDevice *d) pcie_port_init_reg(d); pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_TI); pci_config_set_device_id(d->config, PCI_DEVICE_ID_TI_XIO3130U); - d->config[PCI_REVISION_ID] = XIO3130_REVISION; + pci_config_set_revision(d->config, XIO3130_REVISION); rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, XIO3130_MSI_SUPPORTED_FLAGS & PCI_MSI_FLAGS_64BIT,