linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] OMAP: DSS2: Fix error path in omap_dsi_update()
@ 2010-07-14 12:11 Archit Taneja
  2010-07-14 16:01 ` Nishanth Menon
  2010-07-27  7:19 ` Tomi Valkeinen
  0 siblings, 2 replies; 7+ messages in thread
From: Archit Taneja @ 2010-07-14 12:11 UTC (permalink / raw)
  To: tomi.valkeinen; +Cc: linux-omap, Archit Taneja

In the case of an error on calling dsi_update_screen_l4(), a
successful framedone callback is still sent to panel-taal. An
error should be returned to taal_update() instead.

Signed-off-by: Archit Taneja <archit@ti.com>
---
v2: This fixes a compilation warning seen after
builing with v1.

v1:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg31715.html

 drivers/video/omap2/dss/dsi.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index a6e0f64..b3fa3a7
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -2920,7 +2920,12 @@ int omap_dsi_update(struct omap_dss_device *dssdev,
 
 		dsi_update_screen_dispc(dssdev, x, y, w, h);
 	} else {
-		dsi_update_screen_l4(dssdev, x, y, w, h);
+		int r;
+
+		r = dsi_update_screen_l4(dssdev, x, y, w, h);
+		if (r)
+			return r;
+
 		dsi_perf_show("L4");
 		callback(0, data);
 	}
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-27  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 12:11 [PATCH v2] OMAP: DSS2: Fix error path in omap_dsi_update() Archit Taneja
2010-07-14 16:01 ` Nishanth Menon
2010-07-17  6:44   ` Taneja, Archit
2010-07-27  7:19 ` Tomi Valkeinen
2010-07-27  7:34   ` Taneja, Archit
2010-07-27  7:43     ` Tomi Valkeinen
2010-07-27  8:23       ` Taneja, Archit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).