Skip to content

Commit 5a3c0ff

Browse files
inochisaRevySR
authored andcommitted
FROMLIST: 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 it also supports multiple PCI MSI interrupts. Add MSI_FLAG_MULTI_PCI_MSI flag for the supported_flags of SG2044 msi_parent_ops so the PCIe controller driver can use this feature if it also supports this feature. Signed-off-by: Inochi Amaoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Han Gao <[email protected]>
1 parent 310f465 commit 5a3c0ff

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)