]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: panel-simple: Add missing pm_runtime_dont_use_autosuspend() calls
authorDouglas Anderson <dianders@chromium.org>
Mon, 17 May 2021 20:08:58 +0000 (13:08 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 24 May 2021 21:04:55 +0000 (14:04 -0700)
commitc088d62810efd593488cd365148ffaeda7ea72de
tree361c1d08b2cfbd917649f1b0c2648cc027c81118
parentf341d2b5f13e97542c23bd0dbaaf46b447121b03
drm/panel: panel-simple: Add missing pm_runtime_dont_use_autosuspend() calls

The PM Runtime docs specifically call out the need to call
pm_runtime_dont_use_autosuspend() in the remove() callback if
pm_runtime_use_autosuspend() was called in probe():

> Drivers in ->remove() callback should undo the runtime PM changes done
> in ->probe(). Usually this means calling pm_runtime_disable(),
> pm_runtime_dont_use_autosuspend() etc.

We should do this. This fixes a warning splat that I saw when I was
testing out the panel-simple's remove().

Fixes: 56b286b79ef1 ("drm/panel: panel-simple: Use runtime pm to avoid excessive unprepare / prepare")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210517130450.v7.1.I9e947183e95c9bd067c9c1d51208ac6a96385139@changeid
drivers/gpu/drm/panel/panel-simple.c