From patchwork Mon Jul 22 07:07:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dang Huynh X-Patchwork-Id: 13738487 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 0CEF5C3DA5D for ; Mon, 22 Jul 2024 07:07:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 258F010E393; Mon, 22 Jul 2024 07:07:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; secure) header.d=riseup.net header.i=@riseup.net header.b="ZbIE9MZH"; dkim-atps=neutral Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A47F10E393 for ; Mon, 22 Jul 2024 07:07:22 +0000 (UTC) Received: from mx0.riseup.net (mx0-pn.riseup.net [10.0.1.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4WSBDV1hVszDqFC for ; Mon, 22 Jul 2024 07:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1721632042; bh=xsoO8528D0avOH03gvCuFMU5tujeueLH3Z0pXQqFoiQ=; h=From:Date:Subject:To:Cc:From; b=ZbIE9MZHYpjb/Wt7BYgyZGdhcP9+gAc25mB5CCJ25ZzJb5Ymz2RpVs/dxOPxMS8u8 B60hSUPJTonBrnH+o4vv8RD+W7hm+O2jXZ+5kkyaFMLHJiMeULghpRAX00kTOwN44R HcyQpeSYS7D2R6J7S9R1csERaUt8NjwmimKNdbMM= Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4WSBDT4kdTz9sqv; Mon, 22 Jul 2024 07:07:21 +0000 (UTC) X-Riseup-User-ID: D470CD1E37C4D29186DA6EFD9BA40A74E66F303C20FB3AC69D2064775CBDA922 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4WSBDP4tnDzJrbR; Mon, 22 Jul 2024 07:07:17 +0000 (UTC) From: Dang Huynh Date: Mon, 22 Jul 2024 14:07:15 +0700 Subject: [PATCH] drm: panel: boe-bf060y8m-aj0: Enable prepare_prev_first MIME-Version: 1.0 Message-Id: <20240722-bf060y8m-aj0-prepare-prev-v1-1-0e51c0f59d22@riseup.net> X-B4-Tracking: v=1; b=H4sIACIFnmYC/x2M3QpAQBBGX0VzbWpMsngVuVh2MMpPuyWSd7dcn c6p77shiFcJUCc3eDk06LZGydIE+smuo6C66MDEORlm7AYq6CoXtDPh7mW3Xj4eyK4rjRjnqqq AuI9x0PP/btrneQHbyj71awAAAA== To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Marijn Suijten , Dang Huynh 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Enable prepare_prev_first flag for BF060Y8M-AJ0 panel so that the previous controller should be prepared first before the prepare for the panel is called. This makes sure that the previous controller, likely to be a DSI host controller should be initialized to LP-11 before the panel is powered up. Suggested-by: Marijn Suijten Signed-off-by: Dang Huynh Reviewed-by: Neil Armstrong --- This fixes display initialization on some platform/devices such as the Fxtec Pro1X. --- drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c | 2 ++ 1 file changed, 2 insertions(+) --- base-commit: 41c196e567fb1ea97f68a2ffb7faab451cd90854 change-id: 20240722-bf060y8m-aj0-prepare-prev-2db87e7dd996 Best regards, diff --git a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c index e77db8597eb7..7e66db4a88bb 100644 --- a/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c +++ b/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.c @@ -377,6 +377,8 @@ static int boe_bf060y8m_aj0_probe(struct mipi_dsi_device *dsi) drm_panel_init(&boe->panel, dev, &boe_bf060y8m_aj0_panel_funcs, DRM_MODE_CONNECTOR_DSI); + boe->panel.prepare_prev_first = true; + boe->panel.backlight = boe_bf060y8m_aj0_create_backlight(dsi); if (IS_ERR(boe->panel.backlight)) return dev_err_probe(dev, PTR_ERR(boe->panel.backlight),