Commit bb5476c7 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAP: DSS2: Taal: Separate panel reset

Separate panel reset code to a function of its own. This will keep the
code cleaner in the future when panel reset is called from multiple
locations.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1f8fa452
...@@ -1018,6 +1018,15 @@ static void taal_power_off(struct omap_dss_device *dssdev) ...@@ -1018,6 +1018,15 @@ static void taal_power_off(struct omap_dss_device *dssdev)
td->enabled = 0; td->enabled = 0;
} }
static int taal_panel_reset(struct omap_dss_device *dssdev)
{
dev_err(&dssdev->dev, "performing LCD reset\n");
taal_power_off(dssdev);
taal_hw_reset(dssdev);
return taal_power_on(dssdev);
}
static int taal_enable(struct omap_dss_device *dssdev) static int taal_enable(struct omap_dss_device *dssdev)
{ {
struct taal_data *td = dev_get_drvdata(&dssdev->dev); struct taal_data *td = dev_get_drvdata(&dssdev->dev);
...@@ -1582,9 +1591,7 @@ static void taal_esd_work(struct work_struct *work) ...@@ -1582,9 +1591,7 @@ static void taal_esd_work(struct work_struct *work)
err: err:
dev_err(&dssdev->dev, "performing LCD reset\n"); dev_err(&dssdev->dev, "performing LCD reset\n");
taal_power_off(dssdev); taal_panel_reset(dssdev);
taal_hw_reset(dssdev);
taal_power_on(dssdev);
dsi_bus_unlock(); dsi_bus_unlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment