From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guan Xuetao Subject: Re: [PATCH v2 11/12] unicore32/PCI: use pci_flags PCI_PROBE_ONLY instead of arm-specific flag Date: Fri, 24 Feb 2012 14:19:24 +0800 Message-ID: <1330064364.12600.3.camel@epip-laptop> References: <20120223194209.20708.54480.stgit@bhelgaas.mtv.corp.google.com> <20120223194358.20708.90268.stgit@bhelgaas.mtv.corp.google.com> Reply-To: gxt@mprc.pku.edu.cn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mprc.pku.edu.cn ([162.105.203.9]:49498 "EHLO mprc.pku.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982Ab2BXHK4 (ORCPT ); Fri, 24 Feb 2012 02:10:56 -0500 In-Reply-To: <20120223194358.20708.90268.stgit@bhelgaas.mtv.corp.google.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-arch@vger.kernel.org On Thu, 2012-02-23 at 12:43 -0700, Bjorn Helgaas wrote: > CC: Guan Xuetao > Signed-off-by: Bjorn Helgaas > --- > arch/unicore32/kernel/pci.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c > index a8f07fe..6c1248f 100644 > --- a/arch/unicore32/kernel/pci.c > +++ b/arch/unicore32/kernel/pci.c > @@ -19,9 +19,9 @@ > #include > #include > #include > +#include I recommend that asm-generic/pci-bridge.h should be inserted into asm/pci.h file. Regards, Guan Xuetao > > static int debug_pci; > -static int use_firmware; > > #define CONFIG_CMD(bus, devfn, where) \ > (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) > @@ -276,7 +276,7 @@ static int __init pci_common_init(void) > > pci_fixup_irqs(pci_common_swizzle, pci_puv3_map_irq); > > - if (!use_firmware) { > + if (!pci_has_flag(PCI_PROBE_ONLY)) { > /* > * Size the bridge windows. > */ > @@ -303,7 +303,7 @@ char * __devinit pcibios_setup(char *str) > debug_pci = 1; > return NULL; > } else if (!strcmp(str, "firmware")) { > - use_firmware = 1; > + pci_add_flags(PCI_PROBE_ONLY); > return NULL; > } > return str;