author: Douglas Anderson <dianders@chromium.org> 2021-04-16 15:39:24 -0700
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:06:55 +0200
commit: 89714541150ab63ce81ca8dd0ce60664bd452233
parent: 725d15c4427a6139aba32a7c9337f1262f2b8729
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index 64f0effb52ac..044acd07c153 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -522,6 +522,9 @@ void drm_bridge_chain_pre_enable(struct drm_bridge *bridge)
list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) {
if (iter->funcs->pre_enable)
iter->funcs->pre_enable(iter);
+
+ if (iter == bridge)
+ break;
}
}
EXPORT_SYMBOL(drm_bridge_chain_pre_enable);