Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184886
b: refs/heads/master
c: 21df20f
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Mar 2, 2010
1 parent 729b028 commit 6a4e205
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1189b7ff6485ebf1039440c34150360fab7cfb01
refs/heads/master: 21df20fcfb4e88f4cd4991e9e67de549e6480adf
21 changes: 18 additions & 3 deletions trunk/drivers/video/omap2/displays/panel-taal.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
/* #define TAAL_USE_ESD_CHECK */
#define TAAL_ESD_CHECK_PERIOD msecs_to_jiffies(5000)

static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable);

struct taal_data {
struct backlight_device *bldev;

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

taal_dcs_write_0(DCS_DISPLAY_ON);

r = _taal_enable_te(dssdev, td->te_enabled);
if (r)
goto err;

#ifdef TAAL_USE_ESD_CHECK
queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD);
#endif
Expand Down Expand Up @@ -828,13 +834,11 @@ static int taal_sync(struct omap_dss_device *dssdev)
return 0;
}

static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
static int _taal_enable_te(struct omap_dss_device *dssdev, bool enable)
{
struct taal_data *td = dev_get_drvdata(&dssdev->dev);
int r;

dsi_bus_lock();

td->te_enabled = enable;

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

return r;
}

static int taal_enable_te(struct omap_dss_device *dssdev, bool enable)
{
int r;

dsi_bus_lock();

r = _taal_enable_te(dssdev, enable);

dsi_bus_unlock();

return r;
Expand Down

0 comments on commit 6a4e205

Please sign in to comment.