Re: [PATCH v2 1/2] powerpc/PCI: Add pcibios_device_change_notifier for powerpc

2012-05-23 Thread Bjorn Helgaas
On Wed, May 23, 2012 at 11:51 AM, Jesse Larrew wrote: > On 05/22/2012 09:33 PM, Hiroo Matsumoto wrote: > >> +static int pcibios_device_change_notifier(struct notifier_block *nb, >> +                                       unsigned long action, void *data) >> +{ >> +     struct pci_dev *dev = to_pci

Re: [PATCH v2 1/2] powerpc/PCI: Add pcibios_device_change_notifier for powerpc

2012-05-23 Thread Jesse Larrew
On 05/22/2012 09:33 PM, Hiroo Matsumoto wrote: > +static int pcibios_device_change_notifier(struct notifier_block *nb, > + unsigned long action, void *data) > +{ > + struct pci_dev *dev = to_pci_dev(data); > + In the general case, we don't know what *da

[PATCH v2 1/2] powerpc/PCI: Add pcibios_device_change_notifier for powerpc

2012-05-22 Thread Hiroo Matsumoto
pcibios_setup_bus_devices which sets DMA and IRQs of PCI device is called only when boot, so DMA and IRQs of PCI device will not set when hotplug. This patch adds pcibios_device_change_notifier which sets DMA and IRQs of PCI device when PCI device adds, so DMA and IRQs of PCI device will be set whe