gpu: ipu-v3: ipu-dmfc: Protect function ipu_dmfc_init_channel() with mutex
authorLiu Ying <gnuiyl@gmail.com>
Mon, 14 Mar 2016 08:10:08 +0000 (16:10 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 31 Mar 2016 09:24:30 +0000 (11:24 +0200)
commit32c26a56af3ae823a883e926b96e3ff00854e6a8
tree6e7e595a598a4921a2fb047a4bbf4a2e56ddd156
parent1cc9daea2a79720cdd8b13ce97515bf1b2b41939
gpu: ipu-v3: ipu-dmfc: Protect function ipu_dmfc_init_channel() with mutex

To avoid race condition issue, we should protect the function
ipu_dmfc_init_channel() with the mutex dmfc->priv->mutex, since it
configures the register DMFC_GENERAL1 at runtime which contains
several control bits for various display channels.  This matches
better with fine grained locking logic in upper layer.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-dmfc.c
This page took 0.0280589999999999 seconds and 5 git commands to generate.