diff options
author | Chris Morgan <macromorgan@hotmail.com> | 2023-11-17 14:25:32 -0600 |
---|---|---|
committer | Neil Armstrong <neil.armstrong@linaro.org> | 2023-11-20 09:33:30 +0100 |
commit | 697ebc319b942403a6fee894607fd2cd47cca069 (patch) | |
tree | 232cb2b521359c3cc44f0df3f49d389694d248be | |
parent | 8bcac1be55e188e5bac3353b550c9cddb70fbbed (diff) | |
download | linux-stable-697ebc319b942403a6fee894607fd2cd47cca069.tar.gz linux-stable-697ebc319b942403a6fee894607fd2cd47cca069.tar.bz2 linux-stable-697ebc319b942403a6fee894607fd2cd47cca069.zip |
drm/panel: nv3051d: Hold panel in reset for unprepare
Improve the panel's ability to restore from suspend by holding the
panel in suspend after unprepare.
Fixes: b1d39f0f4264 ("drm/panel: Add NewVision NV3051D MIPI-DSI LCD panel")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20231117202536.1387815-3-macroalpha82@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231117202536.1387815-3-macroalpha82@gmail.com
-rw-r--r-- | drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c index 79de6c886292..c44c6945662f 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3051d.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3051d.c @@ -261,6 +261,8 @@ static int panel_nv3051d_unprepare(struct drm_panel *panel) usleep_range(10000, 15000); + gpiod_set_value_cansleep(ctx->reset_gpio, 1); + regulator_disable(ctx->vdd); return 0; |