Commit d4ef9dd33d0f513777409710fd99e016d46c3a85

Authored by Ralf Baechle
1 parent fbd0ed37c8

[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: Ralf Baechle <ralf@linux-mips.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -141,6 +141,7 @@
141 141  
142 142 bus = pci_scan_bus(next_busno, hose->pci_ops, hose);
143 143 hose->bus = bus;
  144 + need_domain_info = need_domain_info || hose->index;
144 145 hose->need_domain_info = need_domain_info;
145 146 if (bus) {
146 147 next_busno = bus->subordinate + 1;