mirror_ubuntu-kernels/drivers/pci/controller
Jianjun Wang d537dc125f PCI: mediatek-gen3: Add system PM support
Add suspend_noirq and resume_noirq callback functions to implement PM
system suspend and resume hooks for the MediaTek Gen3 PCIe controller.

When the system suspends, trigger the PCIe link to enter the L2 state
and pull down the PERST# pin, gating the clocks of the MAC layer, and
then power-off the physical layer to provide power-saving.

When the system resumes, the PCIe link should be re-established and the
related control register values should be restored.

Link: https://lore.kernel.org/r/20210420061723.989-7-jianjun.wang@mediatek.com
Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
2021-04-29 17:34:22 +01:00
..
cadence Merge branch 'pci/ntb' 2021-02-24 14:59:23 -06:00
dwc Merge branch 'remotes/lorenzo/pci/misc' 2021-02-24 14:59:25 -06:00
mobiveil PCI: mobiveil: Use irq_data_get_irq_chip_data() 2020-12-15 16:19:33 +01:00
Kconfig PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192 2021-04-29 17:34:09 +01:00
Makefile PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192 2021-04-29 17:34:09 +01:00
pci-aardvark.c Merge branch 'remotes/lorenzo/pci/aardvark' 2020-12-15 15:11:10 -06:00
pci-ftpci100.c PCI: Set bridge map_irq and swizzle_irq to default functions 2020-08-04 16:36:30 +01:00
pci-host-common.c PCI: Call platform_set_drvdata earlier in devm_pci_alloc_host_bridge 2021-02-23 14:00:11 -06:00
pci-host-generic.c PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
pci-hyperv-intf.c PCI: hv: Add a Hyper-V PCI interface driver for software backchannel interface 2019-08-22 00:25:12 -07:00
pci-hyperv.c pci-v5.12-changes 2021-02-25 09:56:08 -08:00
pci-loongson.c PCI: loongson: Simplify loongson_pci_probe() return expression 2020-10-02 12:56:31 +01:00
pci-mvebu.c PCI: mvebu: Fix duplicate resource requests 2020-11-04 13:55:30 -06:00
pci-rcar-gen2.c PCI: rcar-gen2: Use fallthrough pseudo-keyword 2020-09-07 15:17:20 +01:00
pci-tegra.c PCI: tegra: Convert to use DEFINE_SEQ_ATTRIBUTE macro 2020-09-28 12:06:22 +01:00
pci-thunder-ecam.c PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
pci-thunder-pem.c PCI: thunder-pem: Add constant for custom ".bus_shift" initialiser 2020-12-10 14:55:55 -06:00
pci-v3-semi.c PCI: v3-semi: Remove unneeded break 2020-10-20 10:59:55 -05:00
pci-versatile.c PCI: Set bridge map_irq and swizzle_irq to default functions 2020-08-04 16:36:30 +01:00
pci-xgene-msi.c PCI: xgene-msi: Fix race in installing chained irq handler 2021-01-18 15:48:06 +00:00
pci-xgene.c PCI: xgene: Fix CRS SV comment 2021-01-28 10:46:43 +00:00
pcie-altera-msi.c PCI: altera-msi: Remove IRQ handler and data in one go 2021-01-18 15:48:06 +00:00
pcie-altera.c Merge branch 'pci/irq-error' 2020-08-05 18:24:22 -05:00
pcie-brcmstb.c Merge branch 'remotes/lorenzo/pci/misc' 2021-02-24 14:59:25 -06:00
pcie-hisi-error.c PCI: hip: Add handling of HiSilicon HIP PCIe controller errors 2020-09-16 10:30:42 +01:00
pcie-iproc-bcma.c PCI: iproc: Use module_bcma_driver to simplify the code 2020-10-02 12:45:26 +01:00
pcie-iproc-msi.c PCI: iproc: Set affinity mask on MSI interrupts 2020-09-08 22:04:27 +01:00
pcie-iproc-platform.c PCI: iproc: Fix using plain integer as NULL pointer in iproc_pcie_pltfm_probe 2020-10-09 13:37:57 +01:00
pcie-iproc.c Merge branch 'remotes/lorenzo/pci/iproc' 2020-12-15 15:11:12 -06:00
pcie-iproc.h PCI: iproc: Use pci_host_probe() to register host 2020-07-10 11:50:23 +01:00
pcie-mediatek-gen3.c PCI: mediatek-gen3: Add system PM support 2021-04-29 17:34:22 +01:00
pcie-mediatek.c PCI: mediatek: Add missing MODULE_DEVICE_TABLE 2021-04-13 11:47:34 +01:00
pcie-microchip-host.c PCI: microchip: Add Microchip PolarFire PCIe controller driver 2021-02-23 14:00:27 -06:00
pcie-rcar-ep.c PCI: rcar: Add endpoint mode support 2020-05-22 12:35:32 +01:00
pcie-rcar-host.c PCI: rcar: Always allocate MSI addresses in 32bit space 2021-01-15 12:11:00 +00:00
pcie-rcar.c PCI: rcar: Fix calculating mask for PCIEPAMR register 2020-05-11 11:29:48 +01:00
pcie-rcar.h PCI: rcar: Add endpoint mode support 2020-05-22 12:35:32 +01:00
pcie-rockchip-ep.c PCI: Fix kerneldoc warnings 2020-08-05 18:23:14 -05:00
pcie-rockchip-host.c PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
pcie-rockchip.c PCI: rockchip: Make 'ep-gpios' DT property optional 2021-02-23 14:23:50 -06:00
pcie-rockchip.h PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
pcie-xilinx-cpm.c PCI: xilinx-cpm: Fix reference count leak on error path 2021-01-25 17:27:41 +00:00
pcie-xilinx-nwl.c A treewide cleanup of interrupt descriptor (ab)use with all sorts of racy 2020-12-24 13:50:23 -08:00
pcie-xilinx.c PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
vmd.c pci-v5.11-changes 2020-12-15 16:49:59 -08:00