提交 fed62e54 编写于 作者: T Tomi Valkeinen

OMAPDSS: clean up dss_mgr_set_timings

dss_mgr_set_timings() can only be called when the output is not active.
This means that most of the code in the function is extra, as there's no
need to write the values to registers, etc, because that will be handled
when the output will be enabled.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 aba96570
...@@ -1314,21 +1314,19 @@ void dss_mgr_set_timings(struct omap_overlay_manager *mgr, ...@@ -1314,21 +1314,19 @@ void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
const struct omap_video_timings *timings) const struct omap_video_timings *timings)
{ {
unsigned long flags; unsigned long flags;
struct mgr_priv_data *mp = get_mgr_priv(mgr);
mutex_lock(&apply_lock);
spin_lock_irqsave(&data_lock, flags); spin_lock_irqsave(&data_lock, flags);
dss_apply_mgr_timings(mgr, timings); if (mp->updating) {
DSSERR("cannot set timings for %s: manager needs to be disabled\n",
dss_write_regs(); mgr->name);
dss_set_go_bits(); goto out;
}
dss_apply_mgr_timings(mgr, timings);
out:
spin_unlock_irqrestore(&data_lock, flags); spin_unlock_irqrestore(&data_lock, flags);
wait_pending_extra_info_updates();
mutex_unlock(&apply_lock);
} }
static void dss_apply_mgr_lcd_config(struct omap_overlay_manager *mgr, static void dss_apply_mgr_lcd_config(struct omap_overlay_manager *mgr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册