950-0438-drm-vc4-Add-correct-stop-condition-to-vc4_dsi_encode.patch 968 B

123456789101112131415161718192021222324252627282930
  1. From d58e0cb66d35de123f2219f4609f733e7a11a45d Mon Sep 17 00:00:00 2001
  2. From: Dave Stevenson <[email protected]>
  3. Date: Thu, 15 Apr 2021 16:18:16 +0100
  4. Subject: [PATCH] drm/vc4: Add correct stop condition to
  5. vc4_dsi_encoder_disable iteration
  6. vc4_dsi_encoder_disable is partially an open coded version of
  7. drm_bridge_chain_disable, but it missed a termination condition
  8. in the loop for ->disable which meant that no post_disable
  9. calls were made.
  10. Add in the termination clause.
  11. Signed-off-by: Dave Stevenson <[email protected]>
  12. ---
  13. drivers/gpu/drm/vc4/vc4_dsi.c | 3 +++
  14. 1 file changed, 3 insertions(+)
  15. --- a/drivers/gpu/drm/vc4/vc4_dsi.c
  16. +++ b/drivers/gpu/drm/vc4/vc4_dsi.c
  17. @@ -803,6 +803,9 @@ static void vc4_dsi_encoder_disable(stru
  18. list_for_each_entry_reverse(iter, &dsi->bridge_chain, chain_node) {
  19. if (iter->funcs->disable)
  20. iter->funcs->disable(iter);
  21. +
  22. + if (iter == dsi->bridge)
  23. + break;
  24. }
  25. vc4_dsi_ulps(dsi, true);