diff mbox series

[3/9] PCI/MSI: Provide default retrigger callback

Message ID 20200824102317.1038259-4-maz@kernel.org (mailing list archive)
State Not Applicable, archived
Headers show
Series irqchip/gic: generalize use of HW-based retriggering | expand

Commit Message

Marc Zyngier Aug. 24, 2020, 10:23 a.m. UTC
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/pci/msi.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Bjorn Helgaas Aug. 25, 2020, 7:44 p.m. UTC | #1
On Mon, Aug 24, 2020 at 11:23:11AM +0100, Marc Zyngier wrote:
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Acked-by: Bjorn Helgaas <bhelgaas@google.com>

> ---
>  drivers/pci/msi.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
> index 30ae4ffda5c1..c4d31ce2d951 100644
> --- a/drivers/pci/msi.c
> +++ b/drivers/pci/msi.c
> @@ -1446,6 +1446,8 @@ static void pci_msi_domain_update_chip_ops(struct msi_domain_info *info)
>  		chip->irq_mask = pci_msi_mask_irq;
>  	if (!chip->irq_unmask)
>  		chip->irq_unmask = pci_msi_unmask_irq;
> +	if (!chip->irq_retrigger)
> +		chip->irq_retrigger = irq_chip_retrigger_hierarchy;
>  }
>  
>  /**
> -- 
> 2.27.0
>
diff mbox series

Patch

diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index 30ae4ffda5c1..c4d31ce2d951 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -1446,6 +1446,8 @@  static void pci_msi_domain_update_chip_ops(struct msi_domain_info *info)
 		chip->irq_mask = pci_msi_mask_irq;
 	if (!chip->irq_unmask)
 		chip->irq_unmask = pci_msi_unmask_irq;
+	if (!chip->irq_retrigger)
+		chip->irq_retrigger = irq_chip_retrigger_hierarchy;
 }
 
 /**