Commit 9b67eb73 authored by Joonyoung Shim's avatar Joonyoung Shim Committed by Inki Dae

drm/exynos: move triggering checking

It's better to be checking whether triggerring in fimd_trigger function.
Also it will return if in triggerring on fimd_te_handler, then it can't
execute remain codes.
Signed-off-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 3c3c9c1d
...@@ -949,6 +949,13 @@ static void fimd_trigger(struct device *dev) ...@@ -949,6 +949,13 @@ static void fimd_trigger(struct device *dev)
void *timing_base = ctx->regs + driver_data->timing_base; void *timing_base = ctx->regs + driver_data->timing_base;
u32 reg; u32 reg;
/*
* Skips to trigger if in triggering state, because multiple triggering
* requests can cause panel reset.
*/
if (atomic_read(&ctx->triggering))
return;
atomic_set(&ctx->triggering, 1); atomic_set(&ctx->triggering, 1);
reg = readl(ctx->regs + VIDINTCON0); reg = readl(ctx->regs + VIDINTCON0);
...@@ -969,13 +976,6 @@ static void fimd_te_handler(struct exynos_drm_manager *mgr) ...@@ -969,13 +976,6 @@ static void fimd_te_handler(struct exynos_drm_manager *mgr)
if (ctx->pipe < 0 || !ctx->drm_dev) if (ctx->pipe < 0 || !ctx->drm_dev)
return; return;
/*
* Skips to trigger if in triggering state, because multiple triggering
* requests can cause panel reset.
*/
if (atomic_read(&ctx->triggering))
return;
/* /*
* If there is a page flip request, triggers and handles the page flip * If there is a page flip request, triggers and handles the page flip
* event so that current fb can be updated into panel GRAM. * event so that current fb can be updated into panel GRAM.
......
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