mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
OMAPDSS: DPI displays: Take care of panel timings in the driver itself
The timings maintained in omap_dss_device(dssdev->panel.timings) should be maintained by the panel driver itself. It's the panel drivers responsibility to update it if a new set of timings is to be configured. The DPI interface driver shouldn't be responsible of updating the panel timings, it's responsible of maintianing it's own copy of timings. Signed-off-by: Archit Taneja <archit@ti.com>
This commit is contained in:
parent
c499144c3b
commit
bdcae3cc39
@ -730,6 +730,8 @@ static void generic_dpi_panel_set_timings(struct omap_dss_device *dssdev,
|
|||||||
|
|
||||||
omapdss_dpi_set_timings(dssdev, timings);
|
omapdss_dpi_set_timings(dssdev, timings);
|
||||||
|
|
||||||
|
dssdev->panel.timings = *timings;
|
||||||
|
|
||||||
mutex_unlock(&drv_data->lock);
|
mutex_unlock(&drv_data->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,6 +234,7 @@ static void tfp410_set_timings(struct omap_dss_device *dssdev,
|
|||||||
|
|
||||||
mutex_lock(&ddata->lock);
|
mutex_lock(&ddata->lock);
|
||||||
omapdss_dpi_set_timings(dssdev, timings);
|
omapdss_dpi_set_timings(dssdev, timings);
|
||||||
|
dssdev->panel.timings = *timings;
|
||||||
mutex_unlock(&ddata->lock);
|
mutex_unlock(&ddata->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -483,6 +483,8 @@ static void tpo_td043_set_timings(struct omap_dss_device *dssdev,
|
|||||||
struct omap_video_timings *timings)
|
struct omap_video_timings *timings)
|
||||||
{
|
{
|
||||||
omapdss_dpi_set_timings(dssdev, timings);
|
omapdss_dpi_set_timings(dssdev, timings);
|
||||||
|
|
||||||
|
dssdev->panel.timings = *timings;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tpo_td043_check_timings(struct omap_dss_device *dssdev,
|
static int tpo_td043_check_timings(struct omap_dss_device *dssdev,
|
||||||
|
@ -283,7 +283,6 @@ void omapdss_dpi_set_timings(struct omap_dss_device *dssdev,
|
|||||||
mutex_lock(&dpi.lock);
|
mutex_lock(&dpi.lock);
|
||||||
|
|
||||||
dpi.timings = *timings;
|
dpi.timings = *timings;
|
||||||
dssdev->panel.timings = *timings;
|
|
||||||
|
|
||||||
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
|
if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {
|
||||||
r = dispc_runtime_get();
|
r = dispc_runtime_get();
|
||||||
|
Loading…
Reference in New Issue
Block a user