From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhao Subject: [PATCH] Dom0 PCI: fix a regression introduced by the SR-IOV change Date: Wed, 03 Jun 2009 13:41:29 +0800 Message-ID: <4A260D09.4080502@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040306070006050002000409" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: keir.fraser@eu.citrix.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------040306070006050002000409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The device class may be changed during the early fixup. So need to re-read the device class from pci_dev after the fixup. The patch "PCI: centralize device setup code" (c/s 825) wrongly cleaned up the device class re-read. This patch reverts that change. Signed-off-by: Yu Zhao --------------040306070006050002000409 Content-Type: text/x-patch; name="00.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="00.patch" # HG changeset patch # User Yu Zhao # Date 1244007008 -28800 # Node ID ec3442c2ed48eb11fcacd3fe31af48932f0a6645 # Parent 97e0d58411d4cee30c16ee1f81d23b72ec7f107c PCI: fix a regression introduced by the SR-IOV change The device class may be changed during the early fixup. So need to re-read the device class from pci_dev after the fixup. The patch "PCI: centralize device setup code" (c/s 825) wrongly cleaned up the device class re-read. This patch reverts that change. Signed-off-by: Yu Zhao diff -r 97e0d58411d4 -r ec3442c2ed48 drivers/pci/probe.c --- a/drivers/pci/probe.c Tue Jun 02 23:43:55 2009 +0100 +++ b/drivers/pci/probe.c Wed Jun 03 13:30:08 2009 +0800 @@ -721,6 +721,7 @@ /* Early fixups, before probing the BARs */ pci_fixup_device(pci_fixup_early, dev); + class = dev->class >> 8; switch (dev->hdr_type) { /* header type */ case PCI_HEADER_TYPE_NORMAL: /* standard header */ --------------040306070006050002000409 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040306070006050002000409--