Skip to contentSkip to conversation

x86: remove unneeded check in mmconf reject

PATCH New Yinghai Lu 1 participant 1 message Feb 21, 2008

Subsystems (2)
lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: remove unneeded check in mmconf reject

mmconfig is only used to access ext conf space.
so don't need to reject MFG that only have one entry and only handle bus0

arch/x86/pci/mmconfig-shared.c +0 -12
Index: linux-2.6/arch/x86/pci/mmconfig-shared.c
===================================================================
@@ -308,18 +308,6 @@ static void __init pci_mmcfg_reject_brok
 
 	cfg = &pci_mmcfg_config[0];
 
-	/*
-	 * Handle more broken MCFG tables on Asus etc.
-	 * They only contain a single entry for bus 0-0.
-	 */
-	if (pci_mmcfg_config_num == 1 &&
-	    cfg->pci_segment == 0 &&
-	    (cfg->start_bus_number | cfg->end_bus_number) == 0) {
-		printk(KERN_ERR "PCI: start and end of bus number is 0. "
-		       "Rejected as broken MCFG.\n");
-		goto reject;
-	}
-
 	for (i = 0; i < pci_mmcfg_config_num; i++) {
 		int valid = 0;
 		u32 size = (cfg->end_bus_number + 1) << 20;