From nobody Wed Dec 17 04:16:35 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC01AC07E9D for ; Mon, 26 Sep 2022 11:41:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238279AbiIZLlY (ORCPT ); Mon, 26 Sep 2022 07:41:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238343AbiIZLkz (ORCPT ); Mon, 26 Sep 2022 07:40:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9A6422FB; Mon, 26 Sep 2022 03:45:08 -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 ams.source.kernel.org (Postfix) with ESMTPS id 3F8DDB8068A; Mon, 26 Sep 2022 10:45:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77772C433C1; Mon, 26 Sep 2022 10:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189106; bh=XAqwW7kPk1fND/PQ5lZ7DIIBWIlLol6OGCEExEmjyZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wSOt49l9U8aTMtTbVI5fVvXwBdHBds+iqC07BEgiFLURgqaqJRrnD+pTSdDPdHxlr tG/Ktdj5zvHaiZULojHooUtn+ssN3xZE60ussU6392OLD3VjhE4Kp73h0a87EQjNDq 5RaQEOdOpUJGh3bJPAz9A+0KoZNV+QgDXOX710V0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, AngeloGioacchino Del Regno , Chen-Yu Tsai , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.19 076/207] drm/mediatek: dsi: Add atomic {destroy,duplicate}_state, reset callbacks Date: Mon, 26 Sep 2022 12:11:05 +0200 Message-Id: <20220926100809.975360372@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: AngeloGioacchino Del Regno [ Upstream commit eeda05b5e92f51d9a09646ecb493f0a1e872a6ef ] Add callbacks for atomic_destroy_state, atomic_duplicate_state and atomic_reset to restore functionality of the DSI driver: this solves vblank timeouts when another bridge is present in the chain. Tested bridge chain: DSI <=3D> ANX7625 =3D> aux-bus panel Fixes: 7f6335c6a258 ("drm/mediatek: Modify dsi funcs to atomic operations") Signed-off-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai Reviewed-by: N=C3=ADcolas F. R. A. Prado Tested-by: N=C3=ADcolas F. R. A. Prado Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220721172= 727.14624-1-angelogioacchino.delregno@collabora.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/= mtk_dsi.c index af2f123e9a9a..e98b4aca2cb9 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -808,10 +808,13 @@ static void mtk_dsi_bridge_atomic_post_disable(struct= drm_bridge *bridge, =20 static const struct drm_bridge_funcs mtk_dsi_bridge_funcs =3D { .attach =3D mtk_dsi_bridge_attach, + .atomic_destroy_state =3D drm_atomic_helper_bridge_destroy_state, .atomic_disable =3D mtk_dsi_bridge_atomic_disable, + .atomic_duplicate_state =3D drm_atomic_helper_bridge_duplicate_state, .atomic_enable =3D mtk_dsi_bridge_atomic_enable, .atomic_pre_enable =3D mtk_dsi_bridge_atomic_pre_enable, .atomic_post_disable =3D mtk_dsi_bridge_atomic_post_disable, + .atomic_reset =3D drm_atomic_helper_bridge_reset, .mode_set =3D mtk_dsi_bridge_mode_set, }; =20 --=20 2.35.1