Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panel: simple: Add missing panel_simple_unprepare() calls

During panel removal or system shutdown panel_simple_disable() is called
which disables the panel backlight but the panel is still powered due to
missing calls to panel_simple_unprepare().

Fixes: d02fd93e2cd8 ("drm/panel: simple - Disable panel on shutdown")
Cc: stable@vger.kernel.org # v3.16+
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170807115545.27747-1-net147@gmail.com

authored by

Jonathan Liu and committed by
Thierry Reding
f3621a8e 30c6d7ab

+2
+2
drivers/gpu/drm/panel/panel-simple.c
··· 370 370 drm_panel_remove(&panel->base); 371 371 372 372 panel_simple_disable(&panel->base); 373 + panel_simple_unprepare(&panel->base); 373 374 374 375 if (panel->ddc) 375 376 put_device(&panel->ddc->dev); ··· 386 385 struct panel_simple *panel = dev_get_drvdata(dev); 387 386 388 387 panel_simple_disable(&panel->base); 388 + panel_simple_unprepare(&panel->base); 389 389 } 390 390 391 391 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {