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 <dongsheng.x.zhang@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
e32bc9e36d
commit
51977a6d2c
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue