Commit 41f9c78c authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] PCI: Set need_domain_info if controller domain index is non-zero.

This fixes this little funny:

bigsur:/proc/bus/pci# ls -l
total 0
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 00
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 00
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 01
dr-xr-xr-x    2 root     root            0 Aug 28 19:31 03
-r--r--r--    1 root     root            0 Aug 28 19:31 devices
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 28e18a0f
...@@ -141,6 +141,7 @@ static int __init pcibios_init(void) ...@@ -141,6 +141,7 @@ static int __init pcibios_init(void)
bus = pci_scan_bus(next_busno, hose->pci_ops, hose); bus = pci_scan_bus(next_busno, hose->pci_ops, hose);
hose->bus = bus; hose->bus = bus;
need_domain_info = need_domain_info || hose->index;
hose->need_domain_info = need_domain_info; hose->need_domain_info = need_domain_info;
if (bus) { if (bus) {
next_busno = bus->subordinate + 1; next_busno = bus->subordinate + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment