[COMMON] fimc-is2: discriminate actual DTP and force stop
authorJeongtae Park <jtp.park@samsung.com>
Tue, 8 Jan 2019 13:02:53 +0000 (22:02 +0900)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:21:14 +0000 (11:21 +0800)
PR JIRA ID: CPR-564

Change-Id: I693445931347f3098e86bb2b7de82483be5f1959
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-sensor_v2.c

index a658b5c84ac18dcb9205d2efdef31ed37846acd6..a8e1c752984c695414c1d88da64b76b9e732636b 100644 (file)
@@ -807,9 +807,14 @@ static void fimc_is_sensor_dtp(unsigned long data)
                !test_bit(FIMC_IS_SENSOR_FRONT_START, &device->state))
                return;
 
-       err("forcely reset due to 0x%08lx", device->force_stop);
        device->dtp_check = false;
-       device->force_stop = 0;
+
+       if (device->force_stop) {
+               device->force_stop = 0;
+               err("forcely reset due to 0x%08lx", device->force_stop);
+       } else {
+               err("DTP detected");
+       }
 
        fimc_is_sensor_dump(device);