drm/msm/dpu: allow initialization of encoder locks during encoder init
authorKrishna Manikandan <mkrishn@codeaurora.org>
Thu, 28 May 2020 08:34:28 +0000 (14:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:33:58 +0000 (09:33 +0200)
commitfa7408f3a20324fa72fc0f7a82c861c15fb1d080
tree1282bf539b8a4f2d3f3ab4f31b95ed1c5453cb8c
parente1a5b8403617aa986ca0e0ae01e4980877cee9ea
drm/msm/dpu: allow initialization of encoder locks during encoder init

[ Upstream commit 2e7ec6b5297157efabb50e5f82adc628cf90296c ]

In the current implementation, mutex initialization
for encoder mutex locks are done during encoder
setup. This can lead to scenarios where the lock
is used before it is initialized. Move mutex_init
to dpu_encoder_init to avoid this.

Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c