PCI: bus scan adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 13:59:43 +0000 (15:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2012 13:59:43 +0000 (15:59 +0200)
commit510cbdf5edecc3a4898c87b02de9e4f3e9360eda
tree44647a31eb54907eeb1e0f5dd4f87da901369988
parenteda00984552b2871e23e6f8f7268f0bd6a04c473
PCI: bus scan adjustments

As done elsewhere, the ns16550 code shouldn't look at non-zero
functions of a device if that isn't multi-function.

Also both there and in pass-through's _scan_pci_devices() skip looking
at non-zero functions when the device at function zero doesn't exist.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c
xen/drivers/passthrough/pci.c