1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/root/target/linux/bcm27xx/patches-5.15/950-0326-PCI-brcmstb-Advertise-MSI-X-support.patch

28 lines
1.1 KiB
Diff
Raw Normal View History

2022-04-22 15:00:47 +00:00
From 70855652348e5c83056e18a0a934f33fad77594c Mon Sep 17 00:00:00 2001
2021-11-24 17:32:01 +00:00
From: Phil Elwell <phil@raspberrypi.com>
Date: Thu, 3 Dec 2020 13:44:42 +0000
2022-04-22 15:00:47 +00:00
Subject: [PATCH 326/828] PCI: brcmstb: Advertise MSI-X support
2021-11-24 17:32:01 +00:00
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
2022-04-22 15:00:47 +00:00
@@ -471,7 +471,8 @@ static struct irq_chip brcm_msi_irq_chip
2021-11-24 17:32:01 +00:00
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,
};