Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-03-04 Thread Olof Johansson
On Sun, Mar 4, 2012 at 7:54 PM, Olof Johansson wrote: > On Thu, Feb 23, 2012 at 08:41:39AM +1100, Benjamin Herrenschmidt wrote: >> On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: >> >  int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) >> > diff --git a/arch/powerpc/platfo

Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-03-04 Thread Olof Johansson
On Thu, Feb 23, 2012 at 08:41:39AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: > > int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) > > diff --git a/arch/powerpc/platforms/pasemi/pci.c > > b/arch/powerpc/platforms/pasemi/pci.c >

Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-02-23 Thread Bjorn Helgaas
On Wed, Feb 22, 2012 at 1:41 PM, Benjamin Herrenschmidt wrote: > On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: >>  int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) >> diff --git a/arch/powerpc/platforms/pasemi/pci.c >> b/arch/powerpc/platforms/pasemi/pci.c >> index b6a

Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-02-22 Thread Bjorn Helgaas
On Wed, Feb 22, 2012 at 1:41 PM, Benjamin Herrenschmidt wrote: > On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: >> We already use pci_flags, so this just sets pci_flags directly and removes >> the intermediate step of figuring out pci_probe_only, then using it to set >> pci_flags. > > Ah

Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-02-22 Thread Benjamin Herrenschmidt
On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: > We already use pci_flags, so this just sets pci_flags directly and removes > the intermediate step of figuring out pci_probe_only, then using it to set > pci_flags. Ah yes, those flags are now common indeed. > The PCI core provides a pci_f

Re: [PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-02-22 Thread Benjamin Herrenschmidt
On Wed, 2012-02-22 at 11:19 -0700, Bjorn Helgaas wrote: > int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel) > diff --git a/arch/powerpc/platforms/pasemi/pci.c > b/arch/powerpc/platforms/pasemi/pci.c > index b6a0ec4..b27d886 100644 > --- a/arch/powerpc/platforms/pasemi/pci.c > +++

[PATCH v1 09/11] powerpc/PCI: replace pci_probe_only with pci_flags

2012-02-22 Thread Bjorn Helgaas
We already use pci_flags, so this just sets pci_flags directly and removes the intermediate step of figuring out pci_probe_only, then using it to set pci_flags. The PCI core provides a pci_flags definition (currently __weak), so drop the powerpc definitions in favor of that. Note that we must set