[PATCH 1/4] gpu: ipu-v3: ipu-dmfc: Protect function ipu_dmfc_init_channel() with mutex

2016-03-31 Thread Philipp Zabel
Hi Liu, Am Montag, den 14.03.2016, 16:10 +0800 schrieb Liu Ying: > 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

[PATCH 1/4] gpu: ipu-v3: ipu-dmfc: Protect function ipu_dmfc_init_channel() with mutex

2016-03-14 Thread Liu Ying
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