drm/bridge: it6505: Add pre_enable/post_disable callback
authorPin-yen Lin <treapking@chromium.org>
Tue, 4 Oct 2022 04:49:43 +0000 (12:49 +0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 4 Oct 2022 08:54:09 +0000 (10:54 +0200)
commit439adf72726462a0245822d1434f908d451a46ad
treed6f6a3b68354d3c9bfa1e7f1145e88f8c526813d
parent10517777d302d2e09bee3bf272dd28c0b0c8f3d0
drm/bridge: it6505: Add pre_enable/post_disable callback

Add atomic_pre_enable and atomic_post_disable callback to make sure the
bridge is not powered off until atomic_post_disable is called. This
prevents a power leakage when it6505 is powered off, but the upstream
DRM bridge is still sending display signals.

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-3-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c