Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp485308rdh; Thu, 23 Nov 2023 09:08:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+qTmDGRK3gu3xCoieZBHdfVR0MoSBeUR/qXxRouClVIWLqtkLiw6F+IrQAOZXGwFFZKrF X-Received: by 2002:a05:6808:2115:b0:3b2:dd87:fc with SMTP id r21-20020a056808211500b003b2dd8700fcmr3888oiw.2.1700759312413; Thu, 23 Nov 2023 09:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700759312; cv=none; d=google.com; s=arc-20160816; b=pzzeFEGgmJv6A+w3IDQr+HwEmv9n2wbVD0zu/IZ5ghH+O06EtBKZk70wwJsaNC0A6l wB0lxFWfLwZ6om6DrZ5FNxzg2gWXzZQXLMgbGPiHpOj5Ap8/WLbgyO+JEoRmIa/bB7sv dDdwMIGkueL42dOCSxtckFGaXq9a+O+5IgaVQbPFoTx3GGTXc//apgIm9rHWGIRWeoCD FM3w7fP+FkGrLPyEq9Nn1jxxW47qTPsx9roftSeRxGTCDdg6O8goBUA1SUGsVQJk51dj r8MdersYoC5n+GKfcY9kHY91+c+Ys5pqa+eE7iTXBjBpoiPd+DtvzYr0Jjc7OwJo2caa O2LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=j/F4zyU4NdJewvKaF9Oi4vjCv2gvpQbqw+2VT37qabQ=; fh=d9dBOxVRXllbA7LPDQd0gSyS381hUPqNgF0UoCCvY+s=; b=Znwlz0MYgp1TIbhHeKBi0MfurR9EVroN7PfzJoVqLZostTVfQlFcw9wnF2pv42RnMt hHxXGeGrw5/sh71JXf0jdxRuqvh+KQAw82dREs3FoNSIWxMPV1u7V5AffzTpPnCKJmbU bEHtFWkdSDYb5QZBZwl8ddXLFDroW+uHst6XOo3DtwlOdA8E5Kt6PTC9f64yXdWwamaB Kk+YihMlXhsUMYEjUbjAbyY8oNPWPrqX/9VzLQqx19izCRQHdoM+DU37S28mbnAKfK/K ByWRqyc5wZvWIU+HUfGyrz+2vKvp0kFxOjnY0K/EXb2fnkIk24WTIkaA0YS2hUUSTKd6 iQ+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a15-20020aca1a0f000000b003ae3a5c4d4bsi578375oia.133.2023.11.23.09.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:08:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D9727806BF15; Thu, 23 Nov 2023 09:08:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbjKWRIK (ORCPT + 99 others); Thu, 23 Nov 2023 12:08:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWRIJ (ORCPT ); Thu, 23 Nov 2023 12:08:09 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2530B0 for ; Thu, 23 Nov 2023 09:08:15 -0800 (PST) Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1r6DBR-0001A4-UT; Thu, 23 Nov 2023 18:08:09 +0100 From: Philipp Zabel Date: Thu, 23 Nov 2023 18:08:04 +0100 Subject: [PATCH 1/3] drm/panel: ilitek-ili9881c: make use of prepare_prev_first MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231123-drm-panel-ili9881c-am8001280g-v1-1-fdf4d624c211@pengutronix.de> References: <20231123-drm-panel-ili9881c-am8001280g-v1-0-fdf4d624c211@pengutronix.de> In-Reply-To: <20231123-drm-panel-ili9881c-am8001280g-v1-0-fdf4d624c211@pengutronix.de> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Felsch , kernel@pengutronix.de, Philipp Zabel X-Mailer: b4 0.12-dev-aab37 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::54 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:08:27 -0800 (PST) From: Marco Felsch The panel.prepare() call requires an initialized MIPI-DSI host, so set the prepare_prev_first flag to indicate that the host must be initialized first. Signed-off-by: Marco Felsch Signed-off-by: Philipp Zabel --- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index 7838947a1bf3..0c911ed9141b 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -1094,6 +1094,8 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) return ret; } + ctx->panel.prepare_prev_first = true; + ret = drm_panel_of_backlight(&ctx->panel); if (ret) return ret; -- 2.39.2