drm/mediatek: Return from mtk_ovl_layer_config after mtk_ovl_layer_off
authorMark Yacoub <markyacoub@google.com>
Wed, 11 Dec 2019 15:49:00 +0000 (10:49 -0500)
committerCK Hu <ck.hu@mediatek.com>
Fri, 10 Jan 2020 06:10:49 +0000 (14:10 +0800)
commit039cf36cbff95d19673699a6ce6f019908de1ce8
treeee2bf6efc4a0b71623685299187201496c335ca4
parent84abcf1234bbfbcc0b8749bcf9c9ca01525eea50
drm/mediatek: Return from mtk_ovl_layer_config after mtk_ovl_layer_off

If the plane pending state is disabled, call mtk_ovl_layer_off then
return.
This guarantees that that the state is valid for all operations when the
pending state is enabled.

Suggested-by: Sean Paul <seanpaul@chromium.org>
To: CK Hu <ck.hu@mediatek.com>
To: dri-devel@lists.freedesktop.org
Cc: Daniele Castagna <dcastagna@chromium.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Signed-off-by: Mark Yacoub <markyacoub@google.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c