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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94943C43334 for ; Mon, 27 Jun 2022 10:52:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CC9D112991; Mon, 27 Jun 2022 10:52:42 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65B821127DC for ; Mon, 27 Jun 2022 10:52:38 +0000 (UTC) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0B8C26601826; Mon, 27 Jun 2022 11:52:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656327157; bh=WxkNGjx5kgWUdeLMvig/vI26O0/WciY9uF+6rptUBeA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=mA8gY84WX77GS+QSIgYY5nCzqSl5cGKnzWNf1K0Zu4fxBdEtwNYJtYZXQjBPRxvBE SrAYXwtgLPVqMYoSHlGoQPqcMsY59XWaRVrXM40cpFD2R0+wbtBJnV4q0QkBZfLjqv 9fyU4zKOEX3dkiPg01j2zpGhUQPv7fQoUQSrKO3wHW5gQkZoXa/LHTMLYLwbnRK0zG 2xOZ1ZJNq5/owiBnbAsz1O1SOqBBy9u9LvrMno34QX1mAnZdA5ThoUpsWcsknUMq7D b2cUIkSbGRU5crGxtGBDNX4lcBmUr0ncZBp2MGLlZqHHzixhptuUA7aMiKebwqddqr lWZaoVGb/IrFA== Message-ID: <693d8201-5da9-8ad0-2194-812f7bfb19b2@collabora.com> Date: Mon, 27 Jun 2022 12:52:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v14 15/15] drm/mediatek: dpi: Only enable dpi after the bridge is enabled Content-Language: en-US To: Bo-Chen Chen , chunkuang.hu@kernel.org, p.zabel@pengutronix.de, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, airlied@linux.ie References: <20220624030946.14961-1-rex-bc.chen@mediatek.com> <20220624030946.14961-16-rex-bc.chen@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220624030946.14961-16-rex-bc.chen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, granquet@baylibre.com, jitao.shi@mediatek.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, msp@baylibre.com, Project_Global_Chrome_Upstream_Group@mediatek.com, linux-mediatek@lists.infradead.org, wenst@chromium.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Il 24/06/22 05:09, Bo-Chen Chen ha scritto: > From: Guillaume Ranquet > > Enabling the dpi too early causes glitches on screen. > > Move the call to mtk_dpi_enable() at the end of the bridge_enable > callback to ensure everything is setup properly before enabling dpi. > > Fixes: 9e629c17aa8d ("drm/mediatek: Add DPI sub driver") > Signed-off-by: Guillaume Ranquet > Signed-off-by: Bo-Chen Chen Tested-by: AngeloGioacchino Del Regno