OSDN Git Service

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)
commit60487584a79abd763570b54d59e6aad586d64c7b
tree52fc42e5522e5e53ef14c2d95d087f3906eccd8a
parent337ed732b35cdd7c8119d9464b40b6b539b75a25
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