From patchwork Wed Mar 29 13:16:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13192415 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F0765C74A5B for ; Wed, 29 Mar 2023 13:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zBKSPTMiYXmkff2NgvB+sAdQSoLKB5YhETULgQwv0Og=; b=oZwmOuk6qYh8XM QW/0Y0ng3uffan0fL852IG2VnQNAFshK0wDNvieoUEL2TqAg8F60yYe8SdRBol3IcBXVQRtqOWGCw RMNYjMxk4pvuRWhU5rw0y7uD9pUz2kvVsqyjRDUnH4JKJlF5wxCTmeesQKYBze9J6IbNKwzIFi0gi yKWKZ4RFzOoBMPy///jETrwThucAicCTxp0tbeUsu8MStmkc2cZgE+R7gOHl/87252ujFY9pzLL+m Ia6O4PLpCMJcp7Fx1XRqrfTpGKVGLEANUFpsCBpPloikdGGRzKR8tgSd4+5f7styeiKhXYTqU/L62 p1PDfURQjgSWXbid3U/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phVhQ-000K6z-3B; Wed, 29 Mar 2023 13:18:49 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phVhD-000JsP-1d for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2023 13:18:37 +0000 Received: by mail-pj1-x102f.google.com with SMTP id r7-20020a17090b050700b002404be7920aso14496651pjz.5 for ; Wed, 29 Mar 2023 06:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680095913; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oygreZW8DvOSbrfdutvOrgL5JnDv+HmvzMABB2AWGTU=; b=PP7u3tIVudtuhiv7qFOZesk675zC0V0fkdntB0jL9iNFdXswt5umwg2LIHdEfVOiMf SgO+s3lzSunEphaQfvxPRajR+A37yc3RjX4w8wsdfpCpN9Mb0dFYRS/j2D2PhblCX/Hd Hp+2hRKUZPeHcHj96OS+0nv+9aVyjszRGvqX8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095913; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oygreZW8DvOSbrfdutvOrgL5JnDv+HmvzMABB2AWGTU=; b=1j9NGam0nxLMJXSBUOu1lrYv6AsArEvGuMeWqEzAxkCno/J0bhjeaV1keLpowlp4pA 9R6z6euEhkJXiKXXJNCZrYh5ekfSY6c6SxDJdUn0g00/K1UtAHOZPoGUdDBsuIzzjDcf 4t/5k57D8nDE7kILtmDru0nv5nJd4pMpTYBbJcby8sqyjIetPihKW1ChwUcLU+/Ot1Jj VT8+ZYo5AKg91RBV4reCYv/E/cxCwz8f92gRYvwDBQDD/i4JAHFD/o+3USpDmqCoEHVz AXPU44fxOPNV8zOFxRBClPRgtRvilOA3/ZvGHjv1eBLcy/um9mdgCGEbf34x6ai/v8+P Ii7g== X-Gm-Message-State: AAQBX9dnjEmF6Cv2Jf2/BZB9FaIwl+WLZo9y2jYv7hNFmiURIHnjOvRW 5Gk/6jDtngfrYlsfnEAQeKHOww== X-Google-Smtp-Source: AKy350YoFCLmv9UyFpcpczhcyZuQVDlALTndWJuxarm3WW0HnhzkLVyGld0li+h4fc7/eikeMMk/0A== X-Received: by 2002:a17:90b:1d02:b0:23d:133a:62cc with SMTP id on2-20020a17090b1d0200b0023d133a62ccmr21046371pjb.17.1680095912864; Wed, 29 Mar 2023 06:18:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a047:206d:4722:c4fa:e845]) by smtp.gmail.com with ESMTPSA id s16-20020a17090b071000b0023f5c867f82sm1400192pjz.41.2023.03.29.06.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:32 -0700 (PDT) From: Jagan Teki To: Dave Stevenson , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Marek Vasut , linux-amarula , Jagan Teki , Icenowy Zheng Subject: [PATCH v7 07/12] drm: panel: ilitek-ili9881c: Enable prepare_prev_first for k101_im2byl02 Date: Wed, 29 Mar 2023 18:46:13 +0530 Message-Id: <20230329131615.1328366-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230329131615.1328366-1-jagan@amarulasolutions.com> References: <20230329131615.1328366-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_061835_575200_13EB726A X-CRM114-Status: GOOD ( 14.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the drm panel prepare_prev_first flag for k101_im2byl02 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(sun6i-mipi-dsi), likely to be a DSI host controller should be initialized to LP-11 before the panel is powered up. Cc: Icenowy Zheng Signed-off-by: Jagan Teki --- Changes for v7: - new patch drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index 1ec696adf9de..102a1df0cea0 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -42,6 +42,7 @@ struct ili9881c_desc { const size_t init_length; const struct drm_display_mode *mode; const unsigned long mode_flags; + bool prepare_prev_first; }; struct ili9881c { @@ -891,6 +892,7 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = ctx->desc->prepare_prev_first; ctx->power = devm_regulator_get(&dsi->dev, "power"); if (IS_ERR(ctx->power)) @@ -942,6 +944,7 @@ static const struct ili9881c_desc k101_im2byl02_desc = { .init_length = ARRAY_SIZE(k101_im2byl02_init), .mode = &k101_im2byl02_default_mode, .mode_flags = MIPI_DSI_MODE_VIDEO_SYNC_PULSE, + .prepare_prev_first = true, }; static const struct ili9881c_desc w552946aba_desc = {