MLK-18995 drm/imx: hdp: Set pixel link vld and sync ctrl in enc->enable/disable
authorLiu Ying <victor.liu@nxp.com>
Tue, 24 Jul 2018 16:26:24 +0000 (00:26 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit09d30316e3a4fbdb67c9faec9fc48be4855b3e9d
treec06c43be643586eeb64b0add365b36a29b60c911
parente98a16ac70f597cdab6c99c69c263392e02415fb
MLK-18995 drm/imx: hdp: Set pixel link vld and sync ctrl in enc->enable/disable

The pixel link validation and sync ctrl enablement should be the last
step to enable the display pipeline which involves the HDP encoder.
So, let's move the pixel link operations from initialization stage to
enc->enable/disable.  Also, the pixel_link_init/deinit hooks are replaced
with pixel_link_validate/invalidate and pixel_link_sync_ctrl_enable/disable,
since the display controller driver has already initialized the pixel link
at the driver probe stage.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit cb234bc95e870a540e2f3a608f743a7e72a3e754)
drivers/gpu/drm/imx/hdp/imx-hdp.c
drivers/gpu/drm/imx/hdp/imx-hdp.h