Skip to content

Add pcibios_device_change_notifier

Hiroo Matsumoto linux-pci linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 7 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/PCI: Add pcibios_device_change_notifier for powerpcarch/powerpc/include/asm/pci.h arch/powerpc/kernel/pci-common.c arch/powerpc/kernel/pci_32.c +6 more+49 -572 replies
2/2microblaze/PCI: Add pcibios_device_change_notifier for microblazearch/microblaze/include/asm/pci.h arch/microblaze/pci/pci-common.c+40 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Add pcibios_device_change_notifier

This patchset is for PCI hotplug.

pcibios_setup_bus_devices which sets DMA and IRQs of PCI device is called only when boot. DMA setting in probe for PCI driver, like dma_set_mask, does not work on powerpc platform. So it is need to set DMA and IRQs of PCI device when hotplug.

1. Moving pcibios_setup_bus_devices code to pcibios_device_change_notifier which is registered to bus notifier in pcibios_init.
2. Removing caller and callee of pcibios_setup_bus_devices bus notifier works instead of pcibios_setup_bus_devices.
3. Using this bus notifier for microblaze because microblaze/PCI is similer with powerpc/PCI.

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

Regards.

Hiroo MATSUMOTO