]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
OMAP: DSS2: Taal: Fix ESD check
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 1 Mar 2010 11:52:10 +0000 (13:52 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 1 Mar 2010 12:22:57 +0000 (14:22 +0200)
Using taal_enable_te() when DSI bus was locked caused a deadlock.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/displays/panel-taal.c

index a722733106b1723bbfc829dec34f9fb7beb7ba1d..2b57776217796b3b9fa4e326b0316eea725e60fb 100644 (file)
@@ -1055,8 +1055,11 @@ static void taal_esd_work(struct work_struct *work)
        }
        /* Self-diagnostics result is also shown on TE GPIO line. We need
         * to re-enable TE after self diagnostics */
-       if (td->use_ext_te && td->te_enabled)
-               taal_enable_te(dssdev, true);
+       if (td->use_ext_te && td->te_enabled) {
+               r = taal_dcs_write_1(DCS_TEAR_ON, 0);
+               if (r)
+                       goto err;
+       }
 
        dsi_bus_unlock();