The existing has problem because the secure mode is not
enabled again when suspend resume happens.
Therefore the secure mode is changed immediately before
running to resolve the problem.
Change-Id: I4fe22d81fc241d99276d4eac5fc8b8db32777fb7
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
static void g2d_execute_task(struct g2d_device *g2d_dev, struct g2d_task *task)
{
+ g2d_secure_enable();
+
list_move_tail(&task->node, &g2d_dev->tasks_active);
change_task_state_active(task);
goto err_clk;
}
- g2d_secure_enable();
-
spin_lock_irqsave(&g2d_dev->lock_task, flags);
list_add_tail(&task->node, &g2d_dev->tasks_prepared);