mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 702580031a99544e76be9b85c0044c77f957748c Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Thu, 3 Dec 2020 13:44:42 +0000
|
|
Subject: [PATCH] PCI: brcmstb: Advertise MSI-X support
|
|
|
|
Although the BRCMSTB PCIe interface doesn't technically support the
|
|
MSI-X spec, in practise it seems to work provided no more than 32
|
|
MSI-Xs are required. Add the required flag to the driver to allow
|
|
experimentation with devices that demand MSI-X support.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/pci/controller/pcie-brcmstb.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/pci/controller/pcie-brcmstb.c
|
|
+++ b/drivers/pci/controller/pcie-brcmstb.c
|
|
@@ -471,7 +471,8 @@ static struct irq_chip brcm_msi_irq_chip
|
|
|
|
static struct msi_domain_info brcm_msi_domain_info = {
|
|
/* Multi MSI is supported by the controller, but not by this driver */
|
|
- .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
|
|
+ .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
|
|
+ MSI_FLAG_PCI_MSIX),
|
|
.chip = &brcm_msi_irq_chip,
|
|
};
|
|
|