OSDN Git Service

drm/bridge: it6505: Adapt runtime power management framework
authorPin-yen Lin <treapking@chromium.org>
Tue, 4 Oct 2022 04:49:42 +0000 (12:49 +0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 4 Oct 2022 08:54:07 +0000 (10:54 +0200)
commit10517777d302d2e09bee3bf272dd28c0b0c8f3d0
treec5a58e27638bae7deb9c23e078643865abcd00b9
parent353b6bf2c4f14f0049cc8db5c2cca26882ff76b4
drm/bridge: it6505: Adapt runtime power management framework

Use pm_runtime_(get|put)_sync to control the bridge power, and add
SET_SYSTEM_SLEEP_PM_OPS with pm_runtime_force_(suspend|resume) to it6505
driver. Without SET_SYSTEM_SLEEP_PM_OPS, the bridge will be powered on
unnecessarily when no external display is connected.

Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221004044943.2407781-2-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c