MLK-21656-1 gpu: imx: dpu: Access regs in display engine units wo holding mutex
authorLiu Ying <victor.liu@nxp.com>
Tue, 7 May 2019 02:35:55 +0000 (10:35 +0800)
committerLiu Ying <victor.liu@nxp.com>
Fri, 10 May 2019 05:15:17 +0000 (13:15 +0800)
commit7d29b58e5a5ba3e696e7da0401f0a03f4cc38073
treefd95dcde1aed9c07e976164f04b2bbe79bdae4ba
parent8f33c2e70c6171a73db95fa73bb0fb5ea45cb45d
MLK-21656-1 gpu: imx: dpu: Access regs in display engine units wo holding mutex

We don't need holding mutex when accessing registers in display engine
units, because KMS is the only relevant client driver and it has ww mutex
mechansim to ensure there is no race condition on the CRTC resources.
Also, we are naturally safe when the driver initializes the units at the
probe and system power management stages.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/imx/dpu/dpu-disengcfg.c
drivers/gpu/imx/dpu/dpu-framegen.c
drivers/gpu/imx/dpu/dpu-tcon.c