Skip to content

Commit 7ee4a5a

Browse files
inochisaKAGA-KOKO
authored andcommitted
irqchip/sg2042-msi: Set MSI_FLAG_MULTI_PCI_MSI flags for SG2044
The MSI controller on SG2044 has the ability to allocate multiple PCI MSI interrupts. So the PCIe controller driver can use this feature if the hardware supports multiple PCI MSI interrupts. Add the MSI_FLAG_MULTI_PCI_MSI flag to the supported_flags of SG2044 msi_parent_ops to enable this functionality. Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Chen Wang <[email protected]> # Pioneerbox Reviewed-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 9d8c418 commit 7ee4a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-sg2042-msi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ static const struct msi_parent_ops sg2042_msi_parent_ops = {
212212
MSI_FLAG_PCI_MSI_STARTUP_PARENT)
213213

214214
#define SG2044_MSI_FLAGS_SUPPORTED (MSI_GENERIC_FLAGS_MASK | \
215+
MSI_FLAG_MULTI_PCI_MSI | \
215216
MSI_FLAG_PCI_MSIX)
216217

217218
static const struct msi_parent_ops sg2044_msi_parent_ops = {

0 commit comments

Comments
 (0)