diff options
author | Oleg Matcovschi <omatcovschi@google.com> | 2023-03-27 22:12:20 -0700 |
---|---|---|
committer | Oleg Matcovschi <omatcovschi@google.com> | 2023-03-29 13:54:21 -0700 |
commit | b2b476d5a5a6fd97663b5e98d255c661a6ed1f07 (patch) | |
tree | 1f961202cd0d0020d53797f8c7cb2c4bae85dc29 | |
parent | b7d23df08a4f09a50198b49c8a8ac4474c9c1551 (diff) | |
download | display-android-t-qpr3-beta-3_r0.4.tar.gz |
drm: samsung: dsim: handle mode change on TUI exitandroid-t-qpr3-beta-3_r0.4android-t-qpr3-beta-3_r0.3
Bug: 268038983
Change-Id: Ieb2aa0522b2cba057b5569883fe546530eced8aa
Signed-off-by: Adrian Salido <salidoa@google.com>
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
-rw-r--r-- | samsung/exynos_drm_dsim.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samsung/exynos_drm_dsim.c b/samsung/exynos_drm_dsim.c index 7ce6ce0..d95fbc3 100644 --- a/samsung/exynos_drm_dsim.c +++ b/samsung/exynos_drm_dsim.c @@ -528,7 +528,10 @@ static void dsim_encoder_disable(struct drm_encoder *encoder, struct drm_atomic_ pm_runtime_put_sync(dsim->dev); } } else { - if (was_in_self_refresh) { + if (dsim->state == DSIM_STATE_BYPASS) { + pm_runtime_set_suspended(dsim->dev); + dsim->state = DSIM_STATE_SUSPEND; + } else if (was_in_self_refresh) { /* get extra ref count dropped when going into self refresh */ pm_runtime_get_sync(dsim->dev); |