Skip to content

Commit 6abb3cf

Browse files
Katsuya MatsubaraMauro Carvalho Chehab
authored andcommitted
[media] sh_veu: keep power supply until the m2m context is released
In the sh_veu driver, only the interrupt handler 'sh_veu_bh' can invoke the v4l2_m2m_job_finish() function. So the hardware must be alive for handling interrupts until returning from v4l2_m2m_ctx_release(). Signed-off-by: Katsuya Matsubara <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 9166e1a commit 6abb3cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/sh_veu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,6 @@ static int sh_veu_release(struct file *file)
10331033

10341034
dev_dbg(veu->dev, "Releasing instance %p\n", veu_file);
10351035

1036-
pm_runtime_put(veu->dev);
1037-
10381036
if (veu_file == veu->capture) {
10391037
veu->capture = NULL;
10401038
vb2_queue_release(v4l2_m2m_get_vq(veu->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE));
@@ -1050,6 +1048,8 @@ static int sh_veu_release(struct file *file)
10501048
veu->m2m_ctx = NULL;
10511049
}
10521050

1051+
pm_runtime_put(veu->dev);
1052+
10531053
kfree(veu_file);
10541054

10551055
return 0;

0 commit comments

Comments
 (0)