Skip to contentSkip to conversation

microblaze/PCI: Add pcibios_device_change_notifier for microblaze

PATCH In review Hiroo Matsumoto 1 participant 1 message May 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 microblaze/PCI: Add pcibios_device_change_notifier for microblaze

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 when boot and hotplug.

---
 arch/microblaze/include/asm/pci.h |    2 +-
 arch/microblaze/pci/pci-common.c  |   67 +++++++++++++++++++++---------------
 2 files changed, 40 insertions(+), 29 deletions(-)
arch/microblaze/include/asm/pci.h +1 -1
index 0331376..8d11277 100644
@@ -149,8 +149,8 @@ extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
 				 const struct resource *rsrc,
 				 resource_size_t *start, resource_size_t *end);
 
-extern void pcibios_setup_bus_devices(struct pci_bus *bus);
 extern void pcibios_setup_bus_self(struct pci_bus *bus);
+extern void pcibios_setup_bus_notifier(void);
 
 /* This part of code was originally in xilinx-pci.h */
 #ifdef CONFIG_PCI_XILINX
arch/microblaze/pci/pci-common.c +39 -28

91 lines not on this page · raw message

Signature · 1 line
1.7.3.4