Dom0 PCI: fix a regression introduced by the SR-IOV change
PATCH 1/1 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.
# HG changeset patch
# User Yu Zhao <[email protected]>
# 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.
drivers/pci/probe.c +1 -0
@@ -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 */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel