]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: DPI: Add locking for DPI interface
authorArchit Taneja <archit@ti.com>
Thu, 5 Jul 2012 07:22:46 +0000 (12:52 +0530)
committerArchit Taneja <archit@ti.com>
Mon, 13 Aug 2012 10:14:39 +0000 (15:44 +0530)
commitb074cd7843a827e4f9ddb84a6ae41077c150496c
tree4d1e0b02c44337372db9ec571de06ed4b2d07289
parent1a2a0e8417e89a9f498a45798e159d328877c358
OMAPDSS: DPI: Add locking for DPI interface

The DPI interface driver currently relies on the panel driver to ensure calls
like omapdss_dpi_display_enable() and omapdss_dpi_display_disable() are executed
sequentially. Also, currently, there is no way to protect the DPI driver data.

All DPI panel drivers don't ensure this, and in general, a DPI panel driver
should use it's lock to that ensure it's own driver data and omap_dss_device
states are taken care of, and not worry about the DPI interface.

Add mutex locking in the DPI enable/disable/set_timings ops.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dpi.c