From 51977a6d2c7aee738b05d991683496455f6899ff Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Mon, 29 Oct 2018 10:45:29 -0700 Subject: [PATCH] hv: Don't check multi-function flag in PCI enumeration Remove the check to multi-function flag in PCI enumeration because when this flag is set, Device IDs and Class codes, and this flag may vary between functions. We don't assume checking this bit in function 0 is safe enough. Tracked-On: #1568 Signed-off-by: dongshen Signed-off-by: Zide Chen Acked-by: Anthony Xu Acked-by: Eddie Dong --- hypervisor/dm/hw/pci.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hypervisor/dm/hw/pci.c b/hypervisor/dm/hw/pci.c index e565a21a2..134656f69 100644 --- a/hypervisor/dm/hw/pci.c +++ b/hypervisor/dm/hw/pci.c @@ -170,11 +170,6 @@ void pci_scan_bus(pci_enumeration_cb cb_func, void *cb_data) bus_to_scan[secondary_bus] = BUS_SCAN_PENDING; } } - - /* skip if it doesn't have multiple functions */ - if ((hdr_type & PCIM_MFDEV) == 0U) { - break; - } } } }