Skip to content

Commit

Permalink
drm/panel: simple: Add missing panel_simple_unprepare() calls
Browse files Browse the repository at this point in the history
commit f3621a8 upstream.

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: d02fd93 ("drm/panel: simple - Disable panel on shutdown")
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jonathan Liu authored and Greg Kroah-Hartman committed Dec 5, 2017
1 parent 165a3c7 commit 72427ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ static int panel_simple_remove(struct device *dev)
drm_panel_remove(&panel->base);

panel_simple_disable(&panel->base);
panel_simple_unprepare(&panel->base);

if (panel->ddc)
put_device(&panel->ddc->dev);
Expand All @@ -327,6 +328,7 @@ static void panel_simple_shutdown(struct device *dev)
struct panel_simple *panel = dev_get_drvdata(dev);

panel_simple_disable(&panel->base);
panel_simple_unprepare(&panel->base);
}

static const struct drm_display_mode auo_b101aw03_mode = {
Expand Down

0 comments on commit 72427ea

Please sign in to comment.