From patchwork Tue Apr 21 01:35:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinghai Lu X-Patchwork-Id: 19108 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3L1aKCx004573 for ; Tue, 21 Apr 2009 01:36:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbZDUBgM (ORCPT ); Mon, 20 Apr 2009 21:36:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753595AbZDUBgM (ORCPT ); Mon, 20 Apr 2009 21:36:12 -0400 Received: from hera.kernel.org ([140.211.167.34]:42679 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753024AbZDUBgK (ORCPT ); Mon, 20 Apr 2009 21:36:10 -0400 Received: from [129.150.18.172] (sca-ea-fw-1.Sun.COM [192.18.43.225]) (authenticated bits=0) by hera.kernel.org (8.14.2/8.13.8) with ESMTP id n3L1ZjGe018372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Apr 2009 01:35:46 GMT Message-ID: <49ED22EC.2040204@kernel.org> Date: Mon, 20 Apr 2009 18:35:40 -0700 From: Yinghai Lu User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Jesse Barnes , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , "H. Peter Anvin" CC: "linux-kernel@vger.kernel.org" , linux-pci@vger.kernel.org Subject: [PATCH] x86/pci: do assign root bus res if _CRS is used X-Virus-Scanned: ClamAV 0.93.3/9261/Mon Apr 20 18:57:35 2009 on hera.kernel.org X-Virus-Status: Clean Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org it wil be overwriten later if _CRS is used, so don't bother to set it. [ Impact: cleanup ] Signed-off-by: Yinghai Lu --- arch/x86/pci/amd_bus.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/arch/x86/pci/amd_bus.c =================================================================== --- linux-2.6.orig/arch/x86/pci/amd_bus.c +++ linux-2.6/arch/x86/pci/amd_bus.c @@ -100,6 +100,10 @@ void x86_pci_root_bus_res_quirks(struct int j; 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 (pci_root_num < 2) return;