EKKANE-26:[Kane]:[factory]tcmd:solve the black issue after disp_util executed
authorxingbin <xingbin@huaqin.com>
Fri, 19 Oct 2018 11:26:08 +0000 (19:26 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:29:49 +0000 (17:29 +0800)
Change-Id: I195f474435b8e7cd2fae8b338adcecc46358668b
Signed-off-by: xingbin <xingbin@huaqin.com>
drivers/video/fbdev/exynos/dpu20/decon_core.c

index fa12f6eda9cf660014bda2426218c80e022b7f6d..da62add4d278f3fbf66ef14e73da392cfa63d1d2 100755 (executable)
@@ -48,6 +48,7 @@
 #if defined(CONFIG_SOC_EXYNOS9610)
 #include <dt-bindings/clock/exynos9610.h>
 #endif
+#include <asm/current.h>
 
 #include "decon.h"
 #include "dsim.h"
@@ -3149,6 +3150,11 @@ int decon_release(struct fb_info *info, int user)
 
        decon_info("%s + : %d\n", __func__, decon->id);
 
+       if (!strcmp("disp_util",current->comm)) {
+               decon_info("%s, tcmd test is operating\n", __func__);
+               goto tcmd_test;
+       }
+
        if (decon->id && decon->dt.out_type == DECON_OUT_DSI) {
                decon_get_out_sd(decon);
                decon_info("output device of decon%d is changed to %s\n",
@@ -3169,6 +3175,7 @@ int decon_release(struct fb_info *info, int user)
                        decon_dp_disable(decon);
        }
 
+tcmd_test:
        decon_info("%s - : %d\n", __func__, decon->id);
 
        return 0;