MLK-21489 drm/imx: dpu: kms: Return properly in case we fail to get plane state to...
authorLiu Ying <victor.liu@nxp.com>
Thu, 18 Apr 2019 08:34:05 +0000 (16:34 +0800)
committerLiu Ying <victor.liu@nxp.com>
Fri, 19 Apr 2019 07:51:19 +0000 (15:51 +0800)
commit30399c1f96f2e281eb70729ac7dcefdb5d1abc90
treeb619e39fabd737e84452c89ad980567aa217dfc1
parent526042ffcf252b2296a0f617cddba9aef24fdf1e
MLK-21489 drm/imx: dpu: kms: Return properly in case we fail to get plane state to check

We should return properly in case we fail to get plane state to check.
For example, a race condition on the plane state would happen when one
thread does page flip and another thread updates CRTC properties on
that CRTC simultaneously.  '-EDEADLK' should be returned when the
condition occurs.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 2ab36051b74c49f66bb12d8d8086e6e6b3dc069b)
drivers/gpu/drm/imx/dpu/dpu-kms.c