1
0
Fork 0
alistair23-linux/drivers/memory
Yong Wu d4da9d7d50 memory: mtk-smi: Add PM suspend and resume ops
commit fb03082a54 upstream.

In the commit 4f0a1a1ae3 ("memory: mtk-smi: Invoke pm runtime_callback
to enable clocks"), we use pm_runtime callback to enable/disable the smi
larb clocks. It will cause the larb's clock may not be disabled when
suspend. That is because device_prepare will call pm_runtime_get_noresume
which will keep the larb's PM runtime status still is active when suspend,
then it won't enter our pm_runtime suspend callback to disable the
corresponding clocks.

This patch adds suspend pm_ops to force disable the clocks, Use "LATE" to
make sure it disable the larb's clocks after the multimedia devices.

Fixes: 4f0a1a1ae3 ("memory: mtk-smi: Invoke pm runtime_callback to enable clocks")
Signed-off-by: Anan Sun <anan.sun@mediatek.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:48:59 +01:00
..
samsung memory: Convert to using %pOFn instead of device_node.name 2018-11-27 10:54:39 -06:00
tegra ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
.gitignore memory: ti-emif-sram: move driver-specific asm-offset.h to drivers/memory/ 2019-07-17 10:25:10 +09:00
Kconfig ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
Makefile Kbuild updates for v5.3 (2nd) 2019-07-20 09:34:55 -07:00
atmel-ebi.c memory: atmel-ebi: add sam9x60 EBI support 2019-03-21 16:45:04 +01:00
atmel-sdramc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 340 2019-06-05 17:37:07 +02:00
brcmstb_dpfe.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
da8xx-ddrctl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
emif-asm-offsets.c ARM: OMAP2+: Fix build when using split object directories 2018-04-18 10:07:13 -07:00
emif.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
emif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
fsl-corenet-cf.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
fsl_ifc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 2019-05-24 17:36:45 +02:00
jedec_ddr.h ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
jedec_ddr_data.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
jz4780-nemc.c The main MIPS changes for a pretty light v5.3 cycle, including: 2019-07-17 09:42:03 -07:00
mtk-smi.c memory: mtk-smi: Add PM suspend and resume ops 2020-01-17 19:48:59 +01:00
mvebu-devbus.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 340 2019-06-05 17:37:07 +02:00
of_memory.c memory: move jedec_ddr.h from include/memory to drivers/memory/ 2019-06-17 04:45:21 -07:00
of_memory.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
omap-gpmc.c Bulk GPIO changes for the v5.3 kernel cycle: 2019-07-09 09:07:00 -07:00
pl172.c memory: pl172: add ARM PrimeCell PL176 MPMC support 2015-09-29 22:19:02 +02:00
pl353-smc.c memory: pl353: Add driver for arm pl353 static memory controller 2018-12-13 16:07:04 +01:00
ti-aemif.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ti-emif-pm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
ti-emif-sram-pm.S memory: ti-emif-sram: move driver-specific asm-offset.h to drivers/memory/ 2019-07-17 10:25:10 +09:00