Send two null packets before a SLEEP OUT, to work around with a problem in the Lattice
DPHY IP.
Also add some testing code, disabled.
diff --git a/drivers/video/omap2/displays/panel-tonka.c b/drivers/video/omap2/displays/panel-tonka.c
index f263266..d37a34c 100644
--- a/drivers/video/omap2/displays/panel-tonka.c
+++ b/drivers/video/omap2/displays/panel-tonka.c
@@ -1273,6 +1273,22 @@
omapdss_dsi_vc_enable_hs(dssdev, td->channel, true);
#endif
+#if 0
+ {
+ int i = 0;
+ printk("XXX SENDING NULL PACKETS\n");
+ unsigned long timeout = jiffies + msecs_to_jiffies(15000);
+ do {
+ (void) dsi_vc_send_null(td->dssdev, td->channel);
+ i++;
+ } while (time_before(jiffies, timeout));
+ printk("XXX SENT %d NULL PACKETS\n", i);
+ }
+#endif
+
+ (void) dsi_vc_send_null(td->dssdev, td->channel);
+ (void) dsi_vc_send_null(td->dssdev, td->channel);
+
r = tonka_sleep_out(td);
if (r)
goto err;
@@ -1620,7 +1636,11 @@
if (r)
goto err;
+#if 1
if (td->te_enabled && panel_data->use_ext_te) {
+#else
+ if (0) {
+#endif
td->update_region.x = x;
td->update_region.y = y;
td->update_region.w = w;