aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-14 15:10:31 -0400
committerArchit Taneja <archit@ti.com>2012-08-15 06:18:23 -0400
commited1aa9003bc359a3139cbd6c31eb834fa71b26d9 (patch)
tree00f80e92e37d50579532e481e4a3eab52bac3d1b
parent7849398fa28c21dad24292b838b059a862f99f16 (diff)
OMAPDSS: HDMI: Add locking for hdmi interface set timing functions
The hdmi interface driver exposes functions to the hdmi panel driver to configure the interface timings maintained by the hdmi driver. These timings(stored in hdmi.ip_data.cfg) should be protected by the hdmi lock to ensure they are called sequentially, this is similar to how hdmi enable and disable functions need locking. Signed-off-by: Archit Taneja <archit@ti.com>
-rw-r--r--drivers/video/omap2/dss/hdmi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 964a19500c0e..0cdf24673d48 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -561,6 +561,8 @@ void omapdss_hdmi_display_set_timing(struct omap_dss_device *dssdev,
561 struct hdmi_cm cm; 561 struct hdmi_cm cm;
562 const struct hdmi_config *t; 562 const struct hdmi_config *t;
563 563
564 mutex_lock(&hdmi.lock);
565
564 cm = hdmi_get_code(timings); 566 cm = hdmi_get_code(timings);
565 hdmi.ip_data.cfg.cm = cm; 567 hdmi.ip_data.cfg.cm = cm;
566 568
@@ -579,6 +581,8 @@ void omapdss_hdmi_display_set_timing(struct omap_dss_device *dssdev,
579 } else { 581 } else {
580 dss_mgr_set_timings(dssdev->manager, &t->timings); 582 dss_mgr_set_timings(dssdev->manager, &t->timings);
581 } 583 }
584
585 mutex_unlock(&hdmi.lock);
582} 586}
583 587
584static void hdmi_dump_regs(struct seq_file *s) 588static void hdmi_dump_regs(struct seq_file *s)