drm/omap: Remove duplicate calls to .set_timings() operation

The omap_dss_device .set_timings() operations are called directly from
omap_encoder_update(), and indirectly from the omap_dss_device .enable()
operation. The latter is called from omap_encoder_enable(), right after
calling omap_encoder_update(). The .set_timings() operation it thus
called twice in a row. Fix it by removing the indirect call.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Laurent Pinchart 2018-06-05 02:06:54 +03:00 committed by Tomi Valkeinen
parent 8fe1d36100
commit bb23800c88
13 changed files with 0 additions and 28 deletions

View File

@ -66,8 +66,6 @@ static int tvc_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -69,7 +69,6 @@ static void dvic_disconnect(struct omap_dss_device *src,
static int dvic_enable(struct omap_dss_device *dssdev)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *src = dssdev->src;
int r;
@ -79,8 +78,6 @@ static int dvic_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -71,8 +71,6 @@ static int hdmic_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -57,8 +57,6 @@ static int opa362_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -50,8 +50,6 @@ static int tfp410_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -66,15 +66,12 @@ static void tpd_disconnect(struct omap_dss_device *src,
static int tpd_enable(struct omap_dss_device *dssdev)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *src = dssdev->src;
int r;
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -57,8 +57,6 @@ static int panel_dpi_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -142,8 +142,6 @@ static int lb035q02_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -132,8 +132,6 @@ static int nec_8048_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -80,8 +80,6 @@ static int sharp_ls_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
if (ddata->vcc) {
r = regulator_enable(ddata->vcc);
if (r != 0)

View File

@ -523,8 +523,6 @@ static int acx565akm_panel_power_on(struct omap_dss_device *dssdev)
dev_dbg(&ddata->spi->dev, "%s\n", __func__);
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r) {
pr_err("%s sdi enable failed\n", __func__);

View File

@ -187,8 +187,6 @@ static int td028ttec1_panel_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;

View File

@ -338,8 +338,6 @@ static int tpo_td043_enable(struct omap_dss_device *dssdev)
if (omapdss_device_is_enabled(dssdev))
return 0;
src->ops->set_timings(src, &ddata->vm);
r = src->ops->enable(src);
if (r)
return r;