From e8e2b88f5feb852904598cbe8746cc5b3c0022ab Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Wed, 28 Jul 2021 23:18:01 +0200 Subject: mediatek: mt7623: import patch to fix msi warning The 1st generation MediaTek PCIe host bridge cannot handle Message Signaled Interrupts (MSIs). The core PCI code is not aware that MSI is not available. This results in warnings of the form: WARNING: CPU: 2 PID: 112 at include/linux/msi.h:219 pci_msi_setup_msi_irqs.constprop.8+0x64/0x6c Modules linked in: ahci(+) libahci libata sd_mod scsi_mod gpio_button_hotplug CPU: 2 PID: 112 Comm: kmodloader Not tainted 5.10.52 #0 Hardware name: Mediatek Cortex-A7 (Device Tree) Import patches that introduce the 'no_msi' attribute to signal missing MSI support to the core PCI. Refresh patches: - 000-spi-fix-fifo.patch - 330-mtk-bmt-support.patch - 510-net-mediatek-add-flow-offload-for-mt7623.patch - 601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch - 610-pcie-mediatek-fix-clearing-interrupt-status.patch - 700-net-ethernet-mtk_eth_soc-add-support-for-coherent-DM.patch - 710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch Signed-off-by: Nick Hainke --- ...PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'target/linux/mediatek/patches-5.10/601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch') diff --git a/target/linux/mediatek/patches-5.10/601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch b/target/linux/mediatek/patches-5.10/601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch index 9c18565319..fea9486d30 100644 --- a/target/linux/mediatek/patches-5.10/601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch +++ b/target/linux/mediatek/patches-5.10/601-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch @@ -150,7 +150,7 @@ Signed-off-by: chuanjia.liu #include #include "../pci.h" -@@ -205,6 +207,7 @@ struct mtk_pcie_port { +@@ -207,6 +209,7 @@ struct mtk_pcie_port { * struct mtk_pcie - PCIe host information * @dev: pointer to PCIe device * @base: IO mapped register base @@ -158,7 +158,7 @@ Signed-off-by: chuanjia.liu * @free_ck: free-run reference clock * @mem: non-prefetchable memory resource * @ports: pointer to PCIe port information -@@ -213,6 +216,7 @@ struct mtk_pcie_port { +@@ -215,6 +218,7 @@ struct mtk_pcie_port { struct mtk_pcie { struct device *dev; void __iomem *base; @@ -166,7 +166,7 @@ Signed-off-by: chuanjia.liu struct clk *free_ck; struct list_head ports; -@@ -648,7 +652,7 @@ static int mtk_pcie_setup_irq(struct mtk +@@ -650,7 +654,7 @@ static int mtk_pcie_setup_irq(struct mtk return err; } @@ -175,7 +175,7 @@ Signed-off-by: chuanjia.liu if (port->irq < 0) return port->irq; -@@ -674,12 +678,11 @@ static int mtk_pcie_startup_port_v2(stru +@@ -676,12 +680,11 @@ static int mtk_pcie_startup_port_v2(stru if (!mem) return -EINVAL; @@ -193,7 +193,7 @@ Signed-off-by: chuanjia.liu } /* Assert all reset signals */ -@@ -983,6 +986,7 @@ static int mtk_pcie_subsys_powerup(struc +@@ -985,6 +988,7 @@ static int mtk_pcie_subsys_powerup(struc struct device *dev = pcie->dev; struct platform_device *pdev = to_platform_device(dev); struct resource *regs; @@ -201,7 +201,7 @@ Signed-off-by: chuanjia.liu int err; /* get shared registers, which are optional */ -@@ -995,6 +999,13 @@ static int mtk_pcie_subsys_powerup(struc +@@ -997,6 +1001,13 @@ static int mtk_pcie_subsys_powerup(struc } } -- cgit v1.2.3