drm/bridge: anx7625: keep last configure timing
authorXin Ji <xji@analogixsemi.com>
Fri, 9 Dec 2022 03:04:18 +0000 (11:04 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 12 Dec 2022 17:36:22 +0000 (18:36 +0100)
Sometimes kernel may resume back quickly after suspend,
and DRM not call .mode_set() to re-config
display timing before calling .atomic_enable(), bridge
driver with this patch to keep last configure timing.

Signed-off-by: Xin Ji <xji@analogixsemi.com>
Acked-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221209030418.713935-1-xji@analogixsemi.com
drivers/gpu/drm/bridge/analogix/anx7625.c

index 86a52c5..b375887 100644 (file)
@@ -1403,7 +1403,6 @@ static void anx7625_stop_dp_work(struct anx7625_data *ctx)
 {
        ctx->hpd_status = 0;
        ctx->hpd_high_cnt = 0;
-       ctx->display_timing_valid = 0;
 }
 
 static void anx7625_start_dp_work(struct anx7625_data *ctx)