Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261954
b: refs/heads/master
c: e894567
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed Jul 1, 2011
1 parent c1b96e6 commit 4718bf8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 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: 8cff88c5da2197aa601409d4a7ce8f83f8de8190
refs/heads/master: e89456773c578bd988df70fcb7d07504cf63d1a3
33 changes: 21 additions & 12 deletions trunk/drivers/video/omap2/displays/panel-taal.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,18 @@ static int taal_exit_ulps(struct omap_dss_device *dssdev)
return 0;

r = omapdss_dsi_display_enable(dssdev);
if (r)
goto err;
if (r) {
dev_err(&dssdev->dev, "failed to enable DSI\n");
goto err1;
}

omapdss_dsi_vc_enable_hs(dssdev, td->channel, true);

r = _taal_enable_te(dssdev, true);
if (r)
goto err;
if (r) {
dev_err(&dssdev->dev, "failed to re-enable TE");
goto err2;
}

enable_irq(gpio_to_irq(panel_data->ext_te_gpio));

Expand All @@ -521,13 +525,15 @@ static int taal_exit_ulps(struct omap_dss_device *dssdev)

return 0;

err:
dev_err(&dssdev->dev, "exit ULPS failed");
r = taal_panel_reset(dssdev);

enable_irq(gpio_to_irq(panel_data->ext_te_gpio));
td->ulps_enabled = false;
err2:
dev_err(&dssdev->dev, "failed to exit ULPS");

r = taal_panel_reset(dssdev);
if (!r) {
enable_irq(gpio_to_irq(panel_data->ext_te_gpio));
td->ulps_enabled = false;
}
err1:
taal_queue_ulps_work(dssdev);

return r;
Expand Down Expand Up @@ -1317,8 +1323,11 @@ static void taal_disable(struct omap_dss_device *dssdev)
dsi_bus_lock(dssdev);

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
taal_wake_up(dssdev);
taal_power_off(dssdev);
int r;

r = taal_wake_up(dssdev);
if (!r)
taal_power_off(dssdev);
}

dsi_bus_unlock(dssdev);
Expand Down

0 comments on commit 4718bf8

Please sign in to comment.