Skip to content

Commit 9413d96

Browse files
Bharat Kumar Gogadabjorn-helgaas
authored andcommitted
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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Michal Simek <[email protected]>
1 parent b328f3c commit 9413d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/microblaze/pci/pci-common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,10 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose,
632632
}
633633
}
634634

635-
/* Decide whether to display the domain number in /proc */
635+
/* Display the domain number in /proc */
636636
int pci_proc_domain(struct pci_bus *bus)
637637
{
638-
return 0;
638+
return pci_domain_nr(bus);
639639
}
640640

641641
/* This header fixup will do the resource fixup for all devices as they are

0 commit comments

Comments
 (0)