Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929462rwb; Mon, 15 Aug 2022 14:15:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5CX1v6uOL550KIeZmfSNXtotnEV4yMZs4mVWnjunCQ8ylOLT84F79jV7GOSZ3orbT4Q8aH X-Received: by 2002:aa7:ce88:0:b0:442:30f5:433f with SMTP id y8-20020aa7ce88000000b0044230f5433fmr16046976edv.317.1660598111546; Mon, 15 Aug 2022 14:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598111; cv=none; d=google.com; s=arc-20160816; b=m4nLfNq5DqpXE+LkUCy0clzQdA2+pJq4dhma3zcyIaZ+gTlFP8t0gaKzW/dVUC0eD4 +FxSRYNzT4/jHN/klLIQ7V2RriwPd5DrI98iVWcgnbl3MVAmO5Qv7Ki6lSaS+JWZLGLJ PisaGuvwwD9k26KJ/hSCE9zZRgVx/A3ulS0AlTiBdT1Vr/E7tTjRBBOr/eIM/vqyy73M UsOMDfe9+8aQ5+um7ht96MbJLR158DR3F0JQL/yrodhEzRaTDiVa/YieV8CovWkoU2Ip hlIy3H71TZTUes4JR7qCD/jjOwO+MkJ/kPYtWbSR+cZyMTD2gp5RgzXuCcEW6UleBVLG kv0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fYq/9QiZNL6gvbBusQeFm/J1hvTfbR0mbna07LPfALg=; b=V2k7jfDVk6dHz4MwHEWp6lYXnnkNYS72SthG5UxwWJLUVOpTUY8ZjTcQBBvrrJs0xu Q7Yp3rhD8/LJ8WFoIR/g2dlzXKQsw0XSDrw7zcfwPw6pYKV2lpp2L4ZrRKsZk3WhqOh6 dwcIZ8AYkAvZlRLmVaEF1nQTPuWEEwuiPebLbA52OmgO/wIGF06UeV3i3s2HmmeWvT+3 WtucumQZBHsHUN994CsGgboKL5BU2V4TfU7+X4yVV0WBTCJGc0dCqo+n2wHhyCS1elEc +Ihh3KVFydZNGs68+rTdntyeT0DKE/nevXRAHVNiT/03hTWvgFOoZjnIPILkjP6I3LMk gtig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rmhqdB44; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb42-20020a1709077eaa00b00711988b5919si7769390ejc.810.2022.08.15.14.14.43; Mon, 15 Aug 2022 14:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rmhqdB44; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244345AbiHOVFX (ORCPT + 99 others); Mon, 15 Aug 2022 17:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347727AbiHOVCV (ORCPT ); Mon, 15 Aug 2022 17:02:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645DBCE4AC; Mon, 15 Aug 2022 12:14:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B376E6009B; Mon, 15 Aug 2022 19:14:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8DDAC433C1; Mon, 15 Aug 2022 19:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590855; bh=FXcmKym8+v4WXGSA74E5HXWL4LuU9++qS5FPtliBTcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rmhqdB44j7gys/qwEBwu5GamvybdsgEPu1oSW2TL3HRkWXnYhdn2f0PzetXaL9Oj1 c4dkAptJwT7brP8lIaBZh21teRk76RO3o01+YBDvUo+fuY7FFoDKoupa8YTgAlHneu MM2QfFtTUmNAa84iLbjYN5qprkyucnhm613QQM64= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Stevenson , Maxime Ripard , Sasha Levin Subject: [PATCH 5.18 0391/1095] drm/vc4: dsi: Add correct stop condition to vc4_dsi_encoder_disable iteration Date: Mon, 15 Aug 2022 19:56:30 +0200 Message-Id: <20220815180445.871480142@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Stevenson [ Upstream commit 7bcb9c8d0bc9f3cab8ac2634b056c2e6b63945ca ] 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: 033bfe7538a1 ("drm/vc4: dsi: Fix bridge chain handling") Signed-off-by: Dave Stevenson Link: https://lore.kernel.org/r/20220613144800.326124-17-maxime@cerno.tech Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_dsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_dsi.c b/drivers/gpu/drm/vc4/vc4_dsi.c index 333ea96fcde4..b7b2c76770dc 100644 --- a/drivers/gpu/drm/vc4/vc4_dsi.c +++ b/drivers/gpu/drm/vc4/vc4_dsi.c @@ -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) { if (iter->funcs->disable) iter->funcs->disable(iter); + + if (iter == dsi->bridge) + break; } vc4_dsi_ulps(dsi, true); -- 2.35.1