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
..
2020-01-09 10:20:02 +01:00
2019-10-23 06:26:33 -04:00
2019-12-17 19:55:33 +01:00
2020-01-09 10:19:59 +01:00
2019-09-25 13:54:45 +02:00
2019-09-17 16:22:26 -07:00
2019-12-31 16:45:39 +01:00
2019-09-13 16:44:49 +03:00
2020-01-09 10:20:07 +01:00
2020-01-09 10:20:04 +01:00
2020-01-12 12:21:27 +01:00
2020-01-04 19:18:25 +01:00
2020-01-14 20:08:21 +01:00
2020-01-17 19:48:49 +01:00
2020-01-09 10:19:59 +01:00
2019-12-31 16:45:26 +01:00
2019-12-17 19:56:23 +01:00
2020-01-17 19:48:46 +01:00
2020-01-17 19:48:22 +01:00
2020-01-17 19:48:49 +01:00
2019-12-21 11:04:48 +01:00
2019-12-31 16:45:16 +01:00
2019-12-31 16:44:04 +01:00
2020-01-09 10:20:06 +01:00
2020-01-12 12:21:16 +01:00
2019-09-18 11:14:31 -07:00
2019-12-31 16:45:09 +01:00
2020-01-17 19:48:22 +01:00
2020-01-17 19:48:51 +01:00
2019-08-27 19:03:08 +02:00
2020-01-17 19:48:15 +01:00
2019-09-22 12:02:21 -07:00
2020-01-04 19:18:21 +01:00
2019-10-28 18:46:55 -07:00
2019-12-31 16:46:09 +01:00
2020-01-17 19:48:17 +01:00
2019-08-27 09:43:59 +02:00
2019-08-16 11:33:56 -07:00
2019-08-28 11:29:32 +02:00
2020-01-17 19:48:48 +01:00
2020-01-17 19:48:40 +01:00
2020-01-14 20:08:24 +01:00
2019-12-17 19:55:39 +01:00
2020-01-17 19:48:59 +01:00
2020-01-04 19:17:22 +01:00
2019-10-28 13:33:41 -07:00
2020-01-04 19:17:05 +01:00
2019-09-05 13:17:01 -06:00
2019-10-21 02:05:21 +02:00
2020-01-04 19:18:30 +01:00
2020-01-09 10:19:48 +01:00
2020-01-17 19:48:58 +01:00
2020-01-17 19:48:59 +01:00
2019-10-09 11:08:03 +02:00
2019-10-24 08:49:25 +01:00
2020-01-17 19:48:42 +01:00
2020-01-04 19:19:19 +01:00
2020-01-17 19:48:19 +01:00
2020-01-17 19:48:49 +01:00
2019-12-31 16:41:49 +01:00
2019-09-23 17:20:40 -04:00
2020-01-04 19:18:12 +01:00
2020-01-09 10:19:43 +01:00
2019-12-31 16:44:42 +01:00
2020-01-09 10:20:03 +01:00
2019-10-23 10:58:44 +05:30
2019-10-14 21:44:26 +02:00
2019-12-31 16:45:25 +01:00
2020-01-17 19:48:54 +01:00
2019-09-28 08:14:15 -07:00
2020-01-12 12:21:38 +01:00
2020-01-17 19:48:16 +01:00
2020-01-17 19:48:50 +01:00
2020-01-17 19:48:55 +01:00
2019-12-31 16:44:12 +01:00
2020-01-14 20:08:18 +01:00
2020-01-04 19:18:48 +01:00
2019-11-08 18:38:06 +01:00
2020-01-12 12:21:34 +01:00
2019-09-22 10:55:08 -07:00
2020-01-17 19:48:29 +01:00
2020-01-14 20:08:37 +01:00
2020-01-17 19:48:16 +01:00
2020-01-17 19:48:27 +01:00
2020-01-17 19:48:51 +01:00
2019-08-18 12:56:10 +02:00
2019-12-13 08:42:40 +01:00
2019-12-31 16:45:11 +01:00
2020-01-12 12:21:34 +01:00
2019-09-13 17:23:18 +03:00
2020-01-17 19:48:58 +01:00
2020-01-04 19:18:17 +01:00
2019-09-25 17:51:41 -07:00
2019-12-13 08:43:21 +01:00
2019-12-04 22:30:50 +01:00
2020-01-17 19:48:55 +01:00
2019-09-18 11:14:31 -07:00
2020-01-14 20:08:38 +01:00
2019-12-21 11:04:48 +01:00
2020-01-04 19:19:18 +01:00
2019-12-17 19:56:42 +01:00
2019-10-10 14:50:32 +02:00
2019-12-17 19:55:56 +01:00
2019-10-10 15:35:41 +02:00
2020-01-09 10:20:03 +01:00
2020-01-09 10:19:51 +01:00
2019-09-18 11:05:34 -07:00
2019-09-18 11:05:34 -07:00