summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7849398)
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>
struct hdmi_cm cm;
const struct hdmi_config *t;
struct hdmi_cm cm;
const struct hdmi_config *t;
+ mutex_lock(&hdmi.lock);
+
cm = hdmi_get_code(timings);
hdmi.ip_data.cfg.cm = cm;
cm = hdmi_get_code(timings);
hdmi.ip_data.cfg.cm = cm;
} else {
dss_mgr_set_timings(dssdev->manager, &t->timings);
}
} else {
dss_mgr_set_timings(dssdev->manager, &t->timings);
}
+
+ mutex_unlock(&hdmi.lock);
}
static void hdmi_dump_regs(struct seq_file *s)
}
static void hdmi_dump_regs(struct seq_file *s)