summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorAnimesh Kishore <ankishore@nvidia.com>2011-12-23 11:55:10 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-30 10:36:23 +0530
commit1ecbd442fa5cee860cc4b241fc436ced8394024f (patch)
tree3f350560813ffb661cc560158981ed5dd549edd6 /drivers/video/tegra/dc/dc.c
parent14fe2f9b89b08da4ac7c65b3d751c33a96fe52b7 (diff)
video: tegra: dc: Fix dc stream random failure to stop
Fix dc stream randomly failing to stop. Add stablization delay during dsi interface reset. Bug 913019 Change-Id: I1cf3013659de75d15cb1ff41b27c63abd953d614 Signed-off-by: Animesh Kishore <ankishore@nvidia.com> Reviewed-on: http://git-master/r/71952 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com> Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 04de0ed..1c0ff2a 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -2064,7 +2064,7 @@ static void tegra_dc_one_shot_irq(struct tegra_dc *dc, unsigned long status)
tegra_dc_underflow_handler(dc);
/* Mark the frame_end as complete. */
- if (completion_done(&dc->frame_end_complete))
+ if (!completion_done(&dc->frame_end_complete))
complete(&dc->frame_end_complete);
}
}
@@ -2081,7 +2081,7 @@ static void tegra_dc_continuous_irq(struct tegra_dc *dc, unsigned long status)
if (status & FRAME_END_INT) {
/* Mark the frame_end as complete. */
- if (completion_done(&dc->frame_end_complete))
+ if (!completion_done(&dc->frame_end_complete))
complete(&dc->frame_end_complete);
tegra_dc_trigger_windows(dc);