From patchwork Wed Mar 29 13:16:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2830 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B748D414BB for ; Wed, 29 Mar 2023 15:18:21 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id q8-20020a17090ad38800b0023f116f305bsf7702160pju.0 for ; Wed, 29 Mar 2023 06:18:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680095900; cv=pass; d=google.com; s=arc-20160816; b=IA+gJ1jA+mHhQ/9XqbllkcyllqCzPIm8iOvlC1lwtOxI+xLzc3uEcZheC8BHJlCtBK Tqk5TStAORvL0lHNdqfrysvoc7OPnFba9GWVpTT1XPlRW48unLWeUaqEkodyGYNuDnXo MVDNDgERt3L6iEahP4caCCWXbV4OjpYPVWtKlX9enzZmIU+HB1yALNLodNnB2Q3hC5YJ Ro1JDqFMYMxBHqWWulWtWwhLLH0aoimXwYjKLuQ86mVOVk7xzHYVJf7+v8k0wopS60mU ammRpfvwL1H50swwolVwhW+nZX5MNDikSV7ASczYlA08XJgTAw2qSGTROTIHkhHErJd7 f/hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Zf0llEd/mVETTfkDa0b39Wl3dJlDNm2Bv3uLzJgi3zE=; b=SGWyb/9HJqEf+1VcbUM92BTMvTEGPGHqBQuYDaj0pqlRwxDLRhJNGNI4WKksxVWXWd fjvWIvKnO6Mae5kuLIRv7L8/VsKeTiaB3qjlOyFJNIm07CD4UJji7YIinXf9vI8I56/y mcbRkStvmpJ4Ht/4eAcB0Y8Fc9tOnk0/flVh209rxOPLX3SvQL8YWr0P4F4L22EDyTGj FT7xLIVnNZ0WBnNLTdL9EwI63WkU21pu67rqvgn8QTeG9wIfcr0kH/FBUQBNa8mp5mSn q+pujn11ztgjMgpVswY/FU76bsQcmS+bRPWkMXvZPMx4kxKWTuZYB2ir5LkO50KgpSgS 0qag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Ou/OtLmp"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680095900; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender: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=Zf0llEd/mVETTfkDa0b39Wl3dJlDNm2Bv3uLzJgi3zE=; b=MgCqfhzTQA1BMqBJYVkWY/6HcFFYqXNVCucJgS+kiyqLZMm4OSpEmqIOQBLnRKO7rN /mo+IYeRhNFjZ7XEE55QuGgHMhnVCESNWV4REpQyr3ETrg3Aw7S38yv9bVluZ/zwWvSR vqZqETNWQsEFEBk+SmD9v2lNvZ6bBEzFoJQog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095900; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :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=Zf0llEd/mVETTfkDa0b39Wl3dJlDNm2Bv3uLzJgi3zE=; b=OkdSwPNIHhzN2eD3iot6mSGK9a8AepZ58O2d1ZcpmbVBI9DRb7WVu4zMlpnDnRlpvQ X5IabaDYl8UbTmVpkfnOXl2dXEkXnsE2wPA7QAECLY2mgtePw2A3XKm7+z+1v8iZMe9k PA0yLefj+5OCIr2Vl0MOyGoWnMnzmk5HqiZz+m6/hS5EJ3TOs7krWqQQ75HnhpOiWGzI JAbBgfI+n97YQeo2cxsYdxhAc27r+r8/SzRFpd2c4DtS3z52kxbU8zkeMVliIxZaAMC1 oQUxFN5hO+n8lkaweAoJd5g3wyYy9+KIiN0oj4gSzWrXcvktjp/1CrVktLbBS/TbC3YN OgHQ== X-Gm-Message-State: AAQBX9dw8Pxu/zNgW9IfaLq/fvrCfP0ova4D/5OITGymwHq4zXaeelUD x0Gp82iOfmbzbFLvFSCA7BCzChxC X-Google-Smtp-Source: AKy350Zmpmo9F2QyeFRw4NWC9Jv9/qlg/AGa+8dkf3HV1Z/fAdGSOXbx2AO7wJD77CM45XQprx7CJw== X-Received: by 2002:a05:6a00:1a03:b0:623:8990:4712 with SMTP id g3-20020a056a001a0300b0062389904712mr10251509pfv.1.1680095900519; Wed, 29 Mar 2023 06:18:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:33c3:b0:23d:3f08:4703 with SMTP id lk3-20020a17090b33c300b0023d3f084703ls2198488pjb.1.-pod-canary-gmail; Wed, 29 Mar 2023 06:18:20 -0700 (PDT) X-Received: by 2002:a17:902:e543:b0:19a:e762:a1af with SMTP id n3-20020a170902e54300b0019ae762a1afmr2202431plf.33.1680095899605; Wed, 29 Mar 2023 06:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680095899; cv=none; d=google.com; s=arc-20160816; b=HSuKhf7htEVj5rpHX7dlNUSy1fVdYbQtsb4zNb06oqfK9djO23shHJZCNQxDS8AI9g l/7WXeCDB34+miW68lfO/x4D2wp6zgDzsiVrJxaGlSYoPCc33NNiK/mwC8m/UbEcwNen cTDWSI0IO5zj32qoMDJP/vrriBE2gNo+Bi8wQ48GBw0oKA7DgJUpqhO9+v5CtFbwB3Z+ uCJP0FfYJZp5ZzGOfmHviVMsCtkdFzp+kM/4lWDJKkEukbYVAKsfVnofJ7GKTRBHj+sk 40wyCZ5YebmYmKLO4LkMD7076x3rm3Rh0QuzhXQAbO1Bz4U/ch9vlI1UiQSIAuEOPuzf DEbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f+Jq4CQBAwZOjvBLdvikVzLpWjI0SGbxRpeBtUQtDcQ=; b=bhLYGNeMN4DCkzMti9bPJAhth1NATF6DiZJF7ELFk7ov3LCHYObvW99Zx72bdYGI3r gvCNGVt59QEwyTPL6n5Qnj/fxKoblDdIbUAS9JSv+yF8aKB6YBRRl4PKyS0/mOTiEAgE aQmBTkMu6TqdnqPXpqd3KxqkeEKP8+vhVilUmVw35xMVPmPM5KfK5fWajXuI/NfmxLYz Hq+dZWf/1A2Gk8qb+hxkLjjQUvd6Mw0h5fbYivxBKbAglrFqgfmdy3bSKUQ5v6S/J4s2 7NdDn8aiKyBJuJxthxiXQvyFaRtL43yn90X9FXoLnoBafRse3mjADsV55poOwTkgfbIX 3SpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Ou/OtLmp"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id gw6-20020a17090b0a4600b0023d059fa83asor839061pjb.43.2023.03.29.06.18.19 for (Google Transport Security); Wed, 29 Mar 2023 06:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:1e4f:b0:23b:4438:e9ee with SMTP id pi15-20020a17090b1e4f00b0023b4438e9eemr2098113pjb.12.1680095899302; Wed, 29 Mar 2023 06:18:19 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:18 -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 , Ondrej Jirman Subject: [PATCH v7 05/12] drm: panel: sitronix-st7703: Enable prepare_prev_first for xbd599 Date: Wed, 29 Mar 2023 18:46:11 +0530 Message-Id: <20230329131615.1328366-6-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 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Ou/OtLmp"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable the drm panel prepare_prev_first flag for xbd599 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: Ondrej Jirman Signed-off-by: Jagan Teki --- Changes for v7: - new patch drivers/gpu/drm/panel/panel-sitronix-st7703.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c index 6747ca237ced..6e6112f5d971 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -65,6 +65,7 @@ struct st7703_panel_desc { unsigned int lanes; unsigned long mode_flags; enum mipi_dsi_pixel_format format; + bool prepare_prev_first; int (*init_sequence)(struct st7703 *ctx); }; @@ -335,6 +336,7 @@ static const struct st7703_panel_desc xbd599_desc = { .lanes = 4, .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, .format = MIPI_DSI_FMT_RGB888, + .prepare_prev_first = true, .init_sequence = xbd599_init_sequence, }; @@ -544,6 +546,7 @@ static int st7703_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, dev, &st7703_drm_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = ctx->desc->prepare_prev_first; ret = drm_panel_of_backlight(&ctx->panel); if (ret)