mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
drm/vc4: dsi: Add correct stop condition to vc4_dsi_encoder_disable iteration
[ Upstream commit7bcb9c8d0b] vc4_dsi_encoder_disable is partially an open coded version of drm_bridge_chain_disable, but it missed a termination condition in the loop for ->disable which meant that no post_disable calls were made. Add in the termination clause. Fixes:033bfe7538("drm/vc4: dsi: Fix bridge chain handling") Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Link: https://lore.kernel.org/r/20220613144800.326124-17-maxime@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
acfca24ec0
commit
cefc8e7e0e
|
|
@ -803,6 +803,9 @@ static void vc4_dsi_encoder_disable(struct drm_encoder *encoder)
|
||||||
list_for_each_entry_reverse(iter, &dsi->bridge_chain, chain_node) {
|
list_for_each_entry_reverse(iter, &dsi->bridge_chain, chain_node) {
|
||||||
if (iter->funcs->disable)
|
if (iter->funcs->disable)
|
||||||
iter->funcs->disable(iter);
|
iter->funcs->disable(iter);
|
||||||
|
|
||||||
|
if (iter == dsi->bridge)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vc4_dsi_ulps(dsi, true);
|
vc4_dsi_ulps(dsi, true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user