diff mbox series

drm/bridge: anx7625: keep last configure timing

Message ID 20221209030418.713935-1-xji@analogixsemi.com (mailing list archive)
State Accepted
Headers show
Series drm/bridge: anx7625: keep last configure timing | expand

Commit Message

Xin Ji Dec. 9, 2022, 3:04 a.m. UTC
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>
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Hsin-Yi Wang Dec. 9, 2022, 10:09 a.m. UTC | #1
On Fri, Dec 9, 2022 at 11:05 AM Xin Ji <xji@analogixsemi.com> wrote:
>
> 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>

> ---
>  drivers/gpu/drm/bridge/analogix/anx7625.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
> index b0ff1ecb80a5..eb9116503b63 100644
> --- a/drivers/gpu/drm/bridge/analogix/anx7625.c
> +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
> @@ -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)
> --
> 2.25.1
>
Robert Foss Dec. 12, 2022, 5:38 p.m. UTC | #2
On Fri, 9 Dec 2022 11:04:18 +0800, Xin Ji wrote:
> 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.
> 
> 

Applied, thanks!

Repo: https://cgit.freedesktop.org/drm/drm-misc/


[1/1] drm/bridge: anx7625: keep last configure timing
      commit: 38c8389011e06f16b365799f2cd958536befc2e9



rob
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
index b0ff1ecb80a5..eb9116503b63 100644
--- a/drivers/gpu/drm/bridge/analogix/anx7625.c
+++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
@@ -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)