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
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
atmel-sdramc.c
brcmstb_dpfe.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
da8xx-ddrctl.c
emif-asm-offsets.c
emif.c ARM: SoC-related driver updates 2019-07-19 17:13:56 -07:00
emif.h
fsl-corenet-cf.c
fsl_ifc.c
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
of_memory.c
of_memory.h
omap-gpmc.c Bulk GPIO changes for the v5.3 kernel cycle: 2019-07-09 09:07:00 -07:00
pl172.c
pl353-smc.c
ti-aemif.c
ti-emif-pm.c
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