]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx7625: refactor power control to use runtime PM framework
authorPi-Hsun Shih <pihsun@chromium.org>
Mon, 17 May 2021 06:35:28 +0000 (14:35 +0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 18 May 2021 12:51:14 +0000 (14:51 +0200)
commit73e2d37a869f0cebc566fe319109995e7af77ab1
tree52fc42e5522e5e53ef14c2d95d087f3906eccd8a
parent24c724647e3b34acbf7d3bd8824c3a55f6f90a51
drm/bridge: anx7625: refactor power control to use runtime PM framework

The driver originally use an atomic_t for keep track of the power
status, which makes the driver more complicated than needed, and has
some race condition as it's possible to have the power on and power off
sequence going at the same time.

This patch remove the usage of the atomic_t power_status, and use the
kernel runtime power management framework instead.

Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210517063553.554955-1-pihsun@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c
drivers/gpu/drm/bridge/analogix/anx7625.h