Commit 845e730e authored by Pin-yen Lin's avatar Pin-yen Lin Committed by Douglas Anderson
Browse files

drm/bridge: ps8640: Skip redundant bridge enable



Skip the drm_bridge_chain_pre_enable call when the bridge is already
pre_enabled. This make pre_enable and post_disable (thus
pm_runtime_get/put) symmetric.

Fixes: 46f20630 ("drm/bridge: ps8640: Rework power state handling")
Signed-off-by: default avatarPin-yen Lin <treapking@chromium.org>
Reviewed-by: default avatarRobert Foss <rfoss@kernel.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230315035508.2874915-1-treapking@chromium.org
parent 901cdf66
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ static struct edid *ps8640_bridge_get_edid(struct drm_bridge *bridge,
	 * EDID, for this chip, we need to do a full poweron, otherwise it will
	 * fail.
	 */
	if (poweroff)
		drm_atomic_bridge_chain_pre_enable(bridge, connector->state->state);

	edid = drm_get_edid(connector,