drm/bridge: it6505: Fix the order of DP_SET_POWER commands
authorPin-yen Lin <treapking@chromium.org>
Tue, 30 Aug 2022 04:57:56 +0000 (12:57 +0800)
committerRobert Foss <robert.foss@linaro.org>
Tue, 30 Aug 2022 08:13:10 +0000 (10:13 +0200)
commit7c1dceaffd99247bf443606730515b54d6285969
tree1ce40491a72e1eff489cff5e526c9474c4f881bc
parent1ff673333d46d2c1b053ebd0c1c7c7c79e36943e
drm/bridge: it6505: Fix the order of DP_SET_POWER commands

Send DP_SET_POWER_D3 command to the downstream before stopping DP, so the
suspend process will not be interrupted by the HPD interrupt. Also modify
the order in .atomic_enable callback to make the callbacks symmetric.

Fixes: 46ca7da7f1e8 ("drm/bridge: it6505: Send DPCD SET_POWER to downstream")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220830045756.1655954-1-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c