From 671d0310f6a89826c7b41748e65aaa088fe2d494 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 3 Jun 2009 11:21:52 +0100 Subject: [PATCH] Dom0 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 --- drivers/pci/probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 4cb5c5ac..14109387 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -721,6 +721,7 @@ int pci_setup_device(struct pci_dev *dev) /* 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 */ -- 2.39.5