浏览代码

x86/PCI: don't bother with root quirks if _CRS is used

It will be overwriten later if _CRS is used, so don't bother to set it.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Yinghai Lu 16 年之前
父节点
当前提交
b10ceb5530
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/x86/pci/amd_bus.c

+ 4 - 0
arch/x86/pci/amd_bus.c

@@ -100,6 +100,10 @@ void x86_pci_root_bus_res_quirks(struct pci_bus *b)
 	int j;
 	int j;
 	struct pci_root_info *info;
 	struct pci_root_info *info;
 
 
+	/* don't go for it if _CRS is used */
+	if (pci_probe & PCI_USE__CRS)
+		return;
+
 	/* if only one root bus, don't need to anything */
 	/* if only one root bus, don't need to anything */
 	if (pci_root_num < 2)
 	if (pci_root_num < 2)
 		return;
 		return;