From: Maxime Ripard Date: Wed, 27 May 2020 15:47:58 +0000 (+0200) Subject: drm/vc4: crtc: Restrict HACT_ACT setup to DSI X-Git-Tag: v5.10.7~1332^2~33^2~560 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebd11f706c9d9756edad5b5f3f3310d77d77f60c;p=platform%2Fkernel%2Flinux-rpi.git drm/vc4: crtc: Restrict HACT_ACT setup to DSI The HACT_ACT field only needs to be written to when using a DSI display. Let's move that setup to our DSI branch to clear a bit the common path. Reviewed-by: Eric Anholt Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/7a93436f97666a2aa025686ef3ff3606de4bec67.1590594512.git-series.maxime@cerno.tech --- diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index be102e7..2913140 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -344,7 +344,8 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) (is_dsi ? PV_VCONTROL_DSI : 0)); } - CRTC_WRITE(PV_HACT_ACT, mode->hdisplay * pixel_rep); + if (is_dsi) + CRTC_WRITE(PV_HACT_ACT, mode->hdisplay * pixel_rep); CRTC_WRITE(PV_CONTROL, VC4_SET_FIELD(format, PV_CONTROL_FORMAT) |