drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times
authorWen He <wen.he_1@nxp.com>
Wed, 8 May 2019 10:58:18 +0000 (10:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:35:58 +0000 (11:35 +0800)
commit1fcb0e389538fc751ce092756f0564593b4dca20
treebeb3bdbd668dc1318004007b99679dbd5766a4b1
parent377958c3ff2cf358feba192a73c667699ee89d60
drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times

[ Upstream commit 6a88e0c14813d00f8520d0e16cd4136c6cf8b4d4 ]

This patch trying to fix monitor freeze issue caused by drm error
'flip_done timed out' on LS1028A platform. this set try is make a loop
around the second setting CVAL and try like 5 times before giveing up.

Signed-off-by: Wen He <wen.he_1@nxp.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/arm/malidp_drv.c