PCI: hv: Set ->domain_nr of pci_host_bridge at probing time
authorBoqun Feng <boqun.feng@gmail.com>
Mon, 26 Jul 2021 18:06:55 +0000 (02:06 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 23 Aug 2021 09:59:26 +0000 (10:59 +0100)
commit38c0d266dc80b81f7f72314620f01ff6a1e119fe
treecee94e4773992769a1df8c03005063105c957487
parent418cb6c8e051119125b886c879efdacb04df7165
PCI: hv: Set ->domain_nr of pci_host_bridge at probing time

No functional change, just store and maintain the PCI domain number in
the ->domain_nr of pci_host_bridge. Note that we still need to keep
the copy of domain number in x86-specific pci_sysdata, because x86 is
not a PCI_DOMAINS_GENERIC=y architecture, so the ->domain_nr of
pci_host_bridge doesn't work for it yet.

Link: https://lore.kernel.org/r/20210726180657.142727-7-boqun.feng@gmail.com
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-hyperv.c