microblaze/PCI: Add pcibios_device_change_notifier for microblaze
Subsystems (2)
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.
Signed-off-by Hiroo MATSUMOTO <[email protected]>
--- 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
@@ -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