aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc/s5p_mfc_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/platform/s5p-mfc/s5p_mfc_intr.c')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_intr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_intr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_intr.c
index 37860e299021..5b8f0e085e6d 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_intr.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_intr.c
@@ -17,7 +17,6 @@
17#include <linux/io.h> 17#include <linux/io.h>
18#include <linux/sched.h> 18#include <linux/sched.h>
19#include <linux/wait.h> 19#include <linux/wait.h>
20#include "regs-mfc.h"
21#include "s5p_mfc_common.h" 20#include "s5p_mfc_common.h"
22#include "s5p_mfc_debug.h" 21#include "s5p_mfc_debug.h"
23#include "s5p_mfc_intr.h" 22#include "s5p_mfc_intr.h"
@@ -28,7 +27,7 @@ int s5p_mfc_wait_for_done_dev(struct s5p_mfc_dev *dev, int command)
28 27
29 ret = wait_event_interruptible_timeout(dev->queue, 28 ret = wait_event_interruptible_timeout(dev->queue,
30 (dev->int_cond && (dev->int_type == command 29 (dev->int_cond && (dev->int_type == command
31 || dev->int_type == S5P_FIMV_R2H_CMD_ERR_RET)), 30 || dev->int_type == S5P_MFC_R2H_CMD_ERR_RET)),
32 msecs_to_jiffies(MFC_INT_TIMEOUT)); 31 msecs_to_jiffies(MFC_INT_TIMEOUT));
33 if (ret == 0) { 32 if (ret == 0) {
34 mfc_err("Interrupt (dev->int_type:%d, command:%d) timed out\n", 33 mfc_err("Interrupt (dev->int_type:%d, command:%d) timed out\n",
@@ -40,7 +39,7 @@ int s5p_mfc_wait_for_done_dev(struct s5p_mfc_dev *dev, int command)
40 } 39 }
41 mfc_debug(1, "Finished waiting (dev->int_type:%d, command: %d)\n", 40 mfc_debug(1, "Finished waiting (dev->int_type:%d, command: %d)\n",
42 dev->int_type, command); 41 dev->int_type, command);
43 if (dev->int_type == S5P_FIMV_R2H_CMD_ERR_RET) 42 if (dev->int_type == S5P_MFC_R2H_CMD_ERR_RET)
44 return 1; 43 return 1;
45 return 0; 44 return 0;
46} 45}
@@ -60,12 +59,12 @@ int s5p_mfc_wait_for_done_ctx(struct s5p_mfc_ctx *ctx,
60 if (interrupt) { 59 if (interrupt) {
61 ret = wait_event_interruptible_timeout(ctx->queue, 60 ret = wait_event_interruptible_timeout(ctx->queue,
62 (ctx->int_cond && (ctx->int_type == command 61 (ctx->int_cond && (ctx->int_type == command
63 || ctx->int_type == S5P_FIMV_R2H_CMD_ERR_RET)), 62 || ctx->int_type == S5P_MFC_R2H_CMD_ERR_RET)),
64 msecs_to_jiffies(MFC_INT_TIMEOUT)); 63 msecs_to_jiffies(MFC_INT_TIMEOUT));
65 } else { 64 } else {
66 ret = wait_event_timeout(ctx->queue, 65 ret = wait_event_timeout(ctx->queue,
67 (ctx->int_cond && (ctx->int_type == command 66 (ctx->int_cond && (ctx->int_type == command
68 || ctx->int_type == S5P_FIMV_R2H_CMD_ERR_RET)), 67 || ctx->int_type == S5P_MFC_R2H_CMD_ERR_RET)),
69 msecs_to_jiffies(MFC_INT_TIMEOUT)); 68 msecs_to_jiffies(MFC_INT_TIMEOUT));
70 } 69 }
71 if (ret == 0) { 70 if (ret == 0) {
@@ -78,7 +77,7 @@ int s5p_mfc_wait_for_done_ctx(struct s5p_mfc_ctx *ctx,
78 } 77 }
79 mfc_debug(1, "Finished waiting (ctx->int_type:%d, command: %d)\n", 78 mfc_debug(1, "Finished waiting (ctx->int_type:%d, command: %d)\n",
80 ctx->int_type, command); 79 ctx->int_type, command);
81 if (ctx->int_type == S5P_FIMV_R2H_CMD_ERR_RET) 80 if (ctx->int_type == S5P_MFC_R2H_CMD_ERR_RET)
82 return 1; 81 return 1;
83 return 0; 82 return 0;
84} 83}