drm/bridge: nwl-dsi: Force a full modeset when crtc_state->active is changed to be...
authorLiu Ying <victor.liu@nxp.com>
Fri, 23 Apr 2021 09:26:41 +0000 (17:26 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 30 Apr 2021 08:39:26 +0000 (10:39 +0200)
commit3afb2a28fa2404d11cce1956a003f2aaca4da421
treec5c3c63e3f90ad9995dd6bdd0a716944246906f1
parent6c525b72f985e967f8d171a7d3f9210c4018decd
drm/bridge: nwl-dsi: Force a full modeset when crtc_state->active is changed to be true

This patch replaces ->mode_fixup() with ->atomic_check() so that
a full modeset can be requested from there when crtc_state->active
is changed to be true(which implies only connector's DPMS is brought
out of "Off" status, though not necessarily).  Bridge functions are
added or changed to accommodate the ->atomic_check() callback.  That
full modeset is needed by the up-coming patch which gets MIPI DSI
controller and PHY ready in ->mode_set(), because it makes sure
->mode_set() and ->atomic_disable() are called in pairs.

Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Jonas Karlman <jonas@kwiboo.se>
Cc: Jernej Skrabec <jernej.skrabec@siol.net>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Guido Günther <agx@sigxcpu.org>
Cc: Robert Chiras <robert.chiras@nxp.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1619170003-4817-2-git-send-email-victor.liu@nxp.com
drivers/gpu/drm/bridge/nwl-dsi.c