PCI: hv: Set up MSI domain at bridge probing time
authorBoqun Feng <boqun.feng@gmail.com>
Mon, 26 Jul 2021 18:06:56 +0000 (02:06 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 23 Aug 2021 09:59:27 +0000 (10:59 +0100)
commit9e7f9178ab4943b3a7294a12bc38925c515ca3f0
tree21c40291d5026ae6c407426725848bc583d4f3e9
parent38c0d266dc80b81f7f72314620f01ff6a1e119fe
PCI: hv: Set up MSI domain at bridge probing time

Since PCI_HYPERV depends on PCI_MSI_IRQ_DOMAIN which selects
GENERIC_MSI_IRQ_DOMAIN, we can use dev_set_msi_domain() to set up the
MSI domain at probing time, and this works for both x86 and ARM64.

Therefore use it as the preparation for ARM64 Hyper-V PCI support.

As a result, no longer need to maintain ->fwnode in x86 specific
pci_sysdata, and make hv_pcibus_device own it instead.

Link: https://lore.kernel.org/r/20210726180657.142727-8-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