diff options
author | Yong Wu <yong.wu@mediatek.com> | 2019-10-09 19:59:33 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-10-15 14:25:34 +0200 |
commit | fb03082a54acd66c61535edfefe96b2ff88ce7e2 (patch) | |
tree | e895201d20c41f7f6c029c6e5072801845cac9af /drivers/powercap | |
parent | 4f5cafb5cb8471e54afdc9054d973535614f7675 (diff) |
memory: mtk-smi: Add PM suspend and resume ops
In the commit 4f0a1a1ae351 ("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: 4f0a1a1ae351 ("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>
Diffstat (limited to 'drivers/powercap')
0 files changed, 0 insertions, 0 deletions