]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mediatek: Add system PM support for MT2712 and MT7622
authorHonghui Zhang <honghui.zhang@mediatek.com>
Mon, 15 Oct 2018 08:08:58 +0000 (16:08 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Oct 2018 14:37:05 +0000 (15:37 +0100)
commit8dada1e5e2a3f6d636dfb32718d7310d2b06e2b6
tree4e09f994f88cc09447a21c9ea1aad2315c2a480f
parent1d043bd14c6ee106c3f2ad94a2da6e4c5ca5e6c6
PCI: mediatek: Add system PM support for MT2712 and MT7622

In order to reduce the PCIe power consumption in system suspend,
the PCI bus physical layer should be gated. On system resume, the PCIe
link should be re-established and the related control register values
should be restored.

Define suspend_noirq & resume_noirq callback functions to implement
PM system syspend hooks for the PCI host controller.

Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/pci/controller/pcie-mediatek.c