Commit 4bd728a1 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mauro Carvalho Chehab

[media] exynos4-is: Do not use asynchronous runtime PM in release fop

Use pm_runtime_put_sync() instead of pm_runtime_put() to avoid races
in handling the 'state' bit flags when the fimc-capture drivers'
runtime_resume callback is called from the PM workqueue.
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 42625fdf
...@@ -496,7 +496,7 @@ static int fimc_capture_open(struct file *file) ...@@ -496,7 +496,7 @@ static int fimc_capture_open(struct file *file)
ret = v4l2_fh_open(file); ret = v4l2_fh_open(file);
if (ret) { if (ret) {
pm_runtime_put(&fimc->pdev->dev); pm_runtime_put_sync(&fimc->pdev->dev);
goto unlock; goto unlock;
} }
...@@ -564,7 +564,7 @@ static int fimc_capture_release(struct file *file) ...@@ -564,7 +564,7 @@ static int fimc_capture_release(struct file *file)
fimc_md_graph_unlock(&vc->ve); fimc_md_graph_unlock(&vc->ve);
} }
pm_runtime_put(&fimc->pdev->dev); pm_runtime_put_sync(&fimc->pdev->dev);
mutex_unlock(&fimc->lock); mutex_unlock(&fimc->lock);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment