bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0396-PCI-brcmstb-Advertise-MSI-X-support.patch
1 From 9cd85b8b4c18c913ac1d63eb2b6d13e3230516a3 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 3 Dec 2020 13:44:42 +0000
4 Subject: [PATCH] PCI: brcmstb: Advertise MSI-X support
5
6 Although the BRCMSTB PCIe interface doesn't technically support the
7 MSI-X spec, in practise it seems to work provided no more than 32
8 MSI-Xs are required. Add the required flag to the driver to allow
9 experimentation with devices that demand MSI-X support.
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 ---
13 drivers/pci/controller/pcie-brcmstb.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/pci/controller/pcie-brcmstb.c
17 +++ b/drivers/pci/controller/pcie-brcmstb.c
18 @@ -463,7 +463,8 @@ static struct irq_chip brcm_msi_irq_chip
19
20 static struct msi_domain_info brcm_msi_domain_info = {
21 /* Multi MSI is supported by the controller, but not by this driver */
22 - .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS),
23 + .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS |
24 + MSI_FLAG_PCI_MSIX),
25 .chip = &brcm_msi_irq_chip,
26 };
27