Skip to content

Commit 21df20f

Browse files
author
Tomi Valkeinen
committed
OMAP: DSS2: Taal: Fix TE when resuming
TE was not initialized properly on power on, which broke TE when resuming from suspend. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
1 parent 1189b7f commit 21df20f

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

‎drivers/video/omap2/displays/panel-taal.c‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
/* #define TAAL_USE_ESD_CHECK */
6464
#define TAAL_ESD_CHECK_PERIOD msecs_to_jiffies(5000)
6565

66+
static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable);
67+
6668
struct taal_data {
6769
struct backlight_device *bldev;
6870

@@ -666,6 +668,10 @@ static int taal_power_on(struct omap_dss_device *dssdev)
666668

667669
taal_dcs_write_0(DCS_DISPLAY_ON);
668670

671+
r = _taal_enable_te(dssdev, td->te_enabled);
672+
if (r)
673+
goto err;
674+
669675
#ifdef TAAL_USE_ESD_CHECK
670676
queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
671677
#endif
@@ -828,13 +834,11 @@ static int taal_sync(struct omap_dss_device *dssdev)
828834
return 0;
829835
}
830836

831-
static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
837+
static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable)
832838
{
833839
struct taal_data *td = dev_get_drvdata(&dssdev->dev);
834840
int r;
835841

836-
dsi_bus_lock();
837-
838842
td->te_enabled = enable;
839843

840844
if (enable)
@@ -848,6 +852,17 @@ static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
848852
* Panel bug? Needs more studying */
849853
msleep(100);
850854

855+
return r;
856+
}
857+
858+
static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
859+
{
860+
int r;
861+
862+
dsi_bus_lock();
863+
864+
r = _taal_enable_te(dssdev, enable);
865+
851866
dsi_bus_unlock();
852867

853868
return r;

0 commit comments

Comments
 (0)