Mauro Carvalho Chehab
4480cacdbc
media: mdk-mdp: fix pm_runtime_get_sync() usage count
...
[ Upstream commit d07bb9702cf5f5ccf3fb661e6cab54bbc33cd23f ]
The pm_runtime_get_sync() internally increments the
dev->power.usage_count without decrementing it, even on errors.
Replace it by the new pm_runtime_resume_and_get(), introduced by:
commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
in order to properly decrement the usage counter, avoiding
a potential PM usage counter leak.
While here, fix the return contition of mtk_mdp_m2m_start_streaming(),
as it doesn't make any sense to return 0 if the PM runtime failed
to resume.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:53:09 +02:00
..
2021-06-10 13:37:04 +02:00
2021-03-04 10:26:32 +01:00
2020-12-30 11:51:35 +01:00
2021-05-14 09:44:24 +02:00
2021-03-30 14:35:21 +02:00
2021-03-04 10:26:30 +01:00
2021-05-19 10:08:20 +02:00
2021-05-19 10:08:30 +02:00
2021-03-07 12:20:44 +01:00
2021-06-10 13:37:08 +02:00
2021-05-26 12:05:19 +02:00
2021-06-03 08:59:09 +02:00
2021-06-23 14:41:31 +02:00
2021-03-04 10:26:29 +01:00
2021-04-14 08:24:09 +02:00
2021-05-14 09:44:21 +02:00
2020-09-09 19:12:21 +02:00
2021-05-14 09:44:20 +02:00
2020-12-30 11:51:46 +01:00
2021-05-14 09:44:20 +02:00
2021-06-30 08:47:46 -04:00
2021-01-12 20:16:23 +01:00
2020-12-30 11:51:36 +01:00
2021-05-11 14:04:09 +02:00
2021-04-07 14:47:43 +02:00
2021-06-10 13:37:03 +02:00
2020-07-29 10:18:31 +02:00
2021-07-07 08:22:58 -04:00
2021-07-07 08:22:58 -04:00
2021-06-18 09:58:58 +02:00
2021-05-14 09:44:25 +02:00
2021-05-14 09:44:22 +02:00
2021-06-23 14:41:27 +02:00
2021-05-11 14:04:15 +02:00
2021-06-30 08:47:50 -04:00
2021-05-14 09:44:15 +02:00
2021-01-12 20:16:09 +01:00
2021-07-14 16:53:06 +02:00
2021-07-07 08:22:58 -04:00
2021-07-14 16:53:02 +02:00
2021-04-16 11:46:37 +02:00
2021-06-03 08:59:00 +02:00
2021-05-14 09:44:20 +02:00
2021-06-16 11:59:34 +02:00
2021-05-26 12:05:20 +02:00
2021-01-27 11:47:53 +01:00
2020-08-19 08:16:15 +02:00
2020-10-29 09:57:53 +01:00
2021-06-16 11:59:37 +02:00
2021-07-14 16:53:09 +02:00
2021-05-14 09:44:19 +02:00
2020-12-30 11:51:18 +01:00
2020-11-05 11:43:25 +01:00
2021-05-14 09:44:25 +02:00
2021-06-03 08:59:08 +02:00
2021-06-30 08:47:44 -04:00
2021-05-14 09:44:20 +02:00
2021-07-14 16:53:07 +02:00
2021-05-14 09:44:27 +02:00
2020-10-29 09:58:00 +01:00
2021-04-21 12:56:16 +02:00
2021-06-18 09:58:59 +02:00
2021-03-04 10:26:37 +01:00
2021-05-14 09:44:33 +02:00
2020-11-18 19:20:21 +01:00
2020-08-19 08:16:26 +02:00
2021-06-30 08:47:45 -04:00
2021-07-14 16:53:05 +02:00
2021-05-14 09:44:19 +02:00
2021-06-30 08:47:50 -04:00
2021-06-03 08:59:12 +02:00
2021-05-11 14:04:11 +02:00
2020-11-10 21:13:20 +01:00
2020-12-30 11:51:26 +01:00
2021-06-23 14:41:26 +02:00
2021-03-04 10:26:36 +01:00
2021-05-26 12:05:17 +02:00
2021-04-14 08:24:18 +02:00
2021-06-16 11:59:43 +02:00
2020-12-30 11:51:24 +01:00
2021-05-19 10:08:25 +02:00
2021-07-14 16:53:05 +02:00
2021-07-14 16:53:05 +02:00
2021-07-07 08:22:58 -04:00
2020-12-30 11:51:13 +01:00
2021-05-14 09:44:23 +02:00
2021-05-14 09:44:19 +02:00
2021-07-14 16:53:09 +02:00
2021-03-04 10:26:49 +01:00
2021-07-14 16:53:07 +02:00
2021-06-23 14:41:27 +02:00
2021-06-18 09:58:59 +02:00
2021-05-11 14:04:06 +02:00
2021-06-03 08:59:05 +02:00
2021-06-03 08:59:03 +02:00
2021-07-14 16:53:07 +02:00
2021-05-26 12:05:17 +02:00
2021-07-14 16:53:01 +02:00
2021-06-10 13:37:03 +02:00
2021-04-07 14:47:39 +02:00
2021-05-26 12:05:21 +02:00
2021-03-04 10:26:10 +01:00
2020-12-30 11:51:29 +01:00
2020-11-05 11:43:25 +01:00
2021-03-04 10:26:47 +01:00
2021-07-11 12:52:08 +02:00