diff options
author | Bharat Kumar Gogada <bharat.kumar.gogada@xilinx.com> | 2016-09-01 06:14:46 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-13 11:41:48 -0400 |
commit | 9413d968f24371bede2c82ec7bb8d040eede8417 (patch) | |
tree | 6755d0423674490384a09b03df1ac81755ae1207 /arch/microblaze | |
parent | b328f3ce993c647c055f917afa947d6c2369461d (diff) |
microblaze/PCI: Add multidomain support for procfs
We create a procfs directory for every PCI bus. Previously, the directory
name was just the bus number, so using the same bus number in different
domains caused a kernel crash when we tried to create a duplicate
directory.
Make pci_proc_domain() return the domain number, so procfs directories for
buses in domain 0 are named with just the bus number, and directories for
buses in other domains include both the domain number and the bus number.
[bhelgaas: changelog]
Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 81556b843a8e..7f696f97f9dd 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -632,10 +632,10 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose, | |||
632 | } | 632 | } |
633 | } | 633 | } |
634 | 634 | ||
635 | /* Decide whether to display the domain number in /proc */ | 635 | /* Display the domain number in /proc */ |
636 | int pci_proc_domain(struct pci_bus *bus) | 636 | int pci_proc_domain(struct pci_bus *bus) |
637 | { | 637 | { |
638 | return 0; | 638 | return pci_domain_nr(bus); |
639 | } | 639 | } |
640 | 640 | ||
641 | /* This header fixup will do the resource fixup for all devices as they are | 641 | /* This header fixup will do the resource fixup for all devices as they are |