x86/msi: Use generic MSI domain ops
pci_msi_get_hwirq() and pci_msi_set_desc are not longer special. Enable the generic MSI domain ops in the core and PCI MSI code unconditionally and get rid of the x86 specific implementations in the X86 MSI code and in the hyperv PCI driver. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200826112332.564274859@linutronix.de
This commit is contained in:
@ -1531,16 +1531,8 @@ static struct irq_chip hv_msi_irq_chip = {
|
||||
.irq_unmask = hv_irq_unmask,
|
||||
};
|
||||
|
||||
static irq_hw_number_t hv_msi_domain_ops_get_hwirq(struct msi_domain_info *info,
|
||||
msi_alloc_info_t *arg)
|
||||
{
|
||||
return arg->hwirq;
|
||||
}
|
||||
|
||||
static struct msi_domain_ops hv_msi_ops = {
|
||||
.get_hwirq = hv_msi_domain_ops_get_hwirq,
|
||||
.msi_prepare = pci_msi_prepare,
|
||||
.set_desc = pci_msi_set_desc,
|
||||
.msi_free = hv_msi_free,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user