]> 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)
commit69a632482b53a5bae9a7253e773d5598ec90dbd1
tree4e09f994f88cc09447a21c9ea1aad2315c2a480f
parenta354435b3413232b21af011693ac6f113423e20d
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