linux/drivers/pci/controller/dwc
Richard Zhu 75cb8d20c1 PCI: imx: Enable MSI from downstream components
The MSI Enable bit in the MSI Capability (PCIe r4.0, sec 7.7.1.2) controls
whether a Function can request service using MSI.

i.MX6 Root Ports implement the MSI Capability and may use MSI to request
service for events like PME, hotplug, AER, etc.  In addition, on i.MX6, the
MSI Enable bit controls delivery of MSI interrupts from components below
the Root Port.

Prior to f3fdfc4ac3 ("PCI: Remove host driver Kconfig selection of
CONFIG_PCIEPORTBUS"), enabling CONFIG_PCI_IMX6 automatically also enabled
CONFIG_PCIEPORTBUS, and when portdrv claimed the Root Ports, it set the MSI
Enable bit so it could use PME, hotplug, AER, etc.  As a side effect, that
also enabled delivery of MSI interrupts from downstream components.

The imx6q-pcie driver itself does not depend on portdrv, so set MSI Enable
in imx6q-pcie so MSI from downstream components works even if nobody uses
MSI for the Root Port events.

Fixes: f3fdfc4ac3 ("PCI: Remove host driver Kconfig selection of CONFIG_PCIEPORTBUS")
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Sven Van Asbroeck <TheSven73@googlemail.com>
Tested-by: Trent Piepho <tpiepho@impinj.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2019-01-01 19:16:48 -06:00
..
Kconfig
Makefile PCI: keystone: Merge pci-keystone-dw.c and pci-keystone.c 2018-10-17 09:43:44 +01:00
pci-dra7xx.c PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode 2018-09-25 10:53:10 +01:00
pci-exynos.c PCI: exynos: Drop unnecessary root_bus_nr setting 2018-07-13 14:07:47 +01:00
pci-imx6.c PCI: imx: Enable MSI from downstream components 2019-01-01 19:16:48 -06:00
pci-keystone.c PCI: keystone: Cleanup macros defined in pci-keystone.c 2018-10-17 09:59:02 +01:00
pci-layerscape.c
pcie-armada8k.c PCI: armada8k: Drop unnecessary root_bus_nr setting 2018-07-13 14:08:28 +01:00
pcie-artpec6.c PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures 2018-07-19 11:34:42 +01:00
pcie-designware-ep.c PCI: dwc: Add legacy interrupt callback handler 2018-07-19 11:38:38 +01:00
pcie-designware-host.c PCI: designware: Fix I/O space page leak 2018-07-18 17:00:29 -05:00
pcie-designware-plat.c pci-epf-test/pci_endpoint_test: Add MSI-X support 2018-07-19 11:46:45 +01:00
pcie-designware.c PCI: dwc: Fix scheduling while atomic issues 2018-09-20 16:36:20 -05:00
pcie-designware.h pci-v4.20-changes 2018-10-25 06:50:48 -07:00
pcie-hisi.c
pcie-histb.c PCI: histb: Drop unnecessary root_bus_nr setting 2018-07-13 14:09:47 +01:00
pcie-kirin.c PCI: kirin: Fix section mismatch warning 2018-10-01 17:16:23 +01:00
pcie-qcom.c PCI: qcom: Fix error handling in runtime PM support 2018-09-18 10:13:14 +01:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00