OMAP: DSS2: DSI: change DSI bus_lock to semaphore
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 11 Jan 2010 14:33:56 +0000 (16:33 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Wed, 24 Feb 2010 12:31:26 +0000 (14:31 +0200)
commitb9eb5d7d0b9bf7c6430374333e4b9dae73bbba20
treec8a746cf672ff1c6781b6f4dbcae4dc712920500
parent63cf28ac3e3166a02a4e0db6168cf403ed66e3a5
OMAP: DSS2: DSI: change DSI bus_lock to semaphore

Physical DSI bus is protected by a mutex. This patch changed the mutex to
a semaphore, so that we can lock and unlock the bus_lock from different
threads.

This is needed as the update process is started by user space program, and
thus the lock is acquired in that context, but the lock can be released in
different context, a work thread via irq.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/dss/dsi.c