From patchwork Tue Jan 31 22:18:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 51065 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp69409wrn; Tue, 31 Jan 2023 14:34:46 -0800 (PST) X-Google-Smtp-Source: AK7set+lvVsQ6mtRR1IAf2BLN/OoCE/h7LhgX+1HnsvSE5s9MtyMzJ6YL75pxxtiWju0sLgb+s7J X-Received: by 2002:a17:906:a1c5:b0:88b:bf70:2e79 with SMTP id bx5-20020a170906a1c500b0088bbf702e79mr26002ejb.30.1675204485854; Tue, 31 Jan 2023 14:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675204485; cv=none; d=google.com; s=arc-20160816; b=DbTL4Y3fr47Ru6FUY0S8Op4qKsHxz/lymEumgwrXq9pNaSpSF03nU0Vo/oDqYrARcC asgtZYaBGEwpkeUjdKgQfJbH78YJM80mM5YLwMJDbqaxmyLairIeV76NOdjHveT274kS 4UCdCU5CfCX2wWSdOoV0ExrgSfZuFcFobAMN1c6Tt8k0WBhKRvnh17S6JqkFyfyc/B5z ywTjVse0PZQZJ77HWU+ZJSMdJIVySxsAShkCeu0cDlLBqgREJS0KYiAJ0j2cSjtcPkUx dkC3gvYVWhXRJ6T/ZdgisexxD1ho6EnY34H0rFVV5nvVepnxrGx6fGi4gWCvC8apLJrE m+ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nDJfgGY2Uq4pkbdaiIQ1ONvu1Aumpm8UVU5btqep3hU=; b=hTyqZKE/cILFefO18CisrGUQkwS6Mes56t0t9pqxxJYuyQAfOev7NjQ3iMRO26Yi3n Z7fzcJTFMheG8LaTUkaVvvoshT7DMpczhw3UTAiPSM7oCjP+s/TYOxiosfbEWLsqMNGX 0nCUAHfnRC5kDhHrJyM5bhbqs7yeGZqLBjgqOXJZ+TyyjUpBNquLybYZQ1kmhpsJGIRW YenTPXabAjYhwgO8212RRs1gniX+JFylGO5NVv4GgxYTm2MlVUg6YP67CqAY4ZbX2obG BqnzAwImVxbxU26ZkjZu8y+XIUINshFY+q9x9AKq0qVkNEP1eia8eD7ew1a7NtM6oFnd xnQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="C//XxpbC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf10-20020a170906c50a00b0088bf3542ea4si4101569ejb.992.2023.01.31.14.34.22; Tue, 31 Jan 2023 14:34:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="C//XxpbC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjAaWW6 (ORCPT + 99 others); Tue, 31 Jan 2023 17:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbjAaWWz (ORCPT ); Tue, 31 Jan 2023 17:22:55 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B6DF5AB6A for ; Tue, 31 Jan 2023 14:22:21 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id be8so16568250plb.7 for ; Tue, 31 Jan 2023 14:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nDJfgGY2Uq4pkbdaiIQ1ONvu1Aumpm8UVU5btqep3hU=; b=C//XxpbCdZukvZqKglW8c6wuEVing1SDTbUUogS/ymch/qoW0vbXqPjsij+7C39bKM cz2v/jqa/PU4i47Iz53rPk2Vw3mNsCvZevPClswFn03twuQH9OPEeoCTzI0WxPUHRVN+ yilQTQAnqMoG4QmPIPzwSaV9MSqokzOW+hEIU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nDJfgGY2Uq4pkbdaiIQ1ONvu1Aumpm8UVU5btqep3hU=; b=YqHSGgKpIGYB1a1CqL0lqUNXu8Re/co6T0CkTHKPUthIqvualKlznCOsac1z6FHPPd Qx5GK4ZGohWDKoeSGuFwmWpXBJG1bxbaYkQVccDbWKr2hUpSoepS9CC0XrTYQEW5KN13 sTPomlXNcvm2fOKcEKaHSmshAlWv+rpula/WDYeUegUaqBuya50SE66lyueqOo0Dvokw udR+koaUN/WJqSnCONz5B7sTnbcJXIR455X0SOA9LuN3SaJ+HTonmOlZpOQl/FxlpWCw 50i2PW7uEKYeSOQW+bjtULgVobYcFjXXpAWOclJhNMrB/sAfda1Wk+T2lPEauClJtvap Oqxw== X-Gm-Message-State: AO0yUKXoDMGDKJ5n4lbnKEwno7Tsu3efHw7ptjthK0Xr7iciBhbJkp+a QSr01wMP2ZcW3WJjN4qTCbpl9A== X-Received: by 2002:a17:903:138c:b0:192:d625:ecc4 with SMTP id jx12-20020a170903138c00b00192d625ecc4mr495493plb.18.1675203738010; Tue, 31 Jan 2023 14:22:18 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:138e:73d3:502:64f]) by smtp.gmail.com with ESMTPSA id d18-20020a170903231200b0019339f3368asm10377471plh.3.2023.01.31.14.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 14:22:17 -0800 (PST) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov Cc: Andrzej Hajda , Laurent Pinchart , Sean Paul , Jonas Karlman , Vinod Koul , Robert Foss , linux-arm-msm@vger.kernel.org, Daniel Vetter , David Airlie , freedreno@lists.freedesktop.org, Stephen Boyd , Neil Armstrong , Jernej Skrabec , Dave Stevenson , Douglas Anderson , linux-kernel@vger.kernel.org Subject: [RFT PATCH v2 1/3] drm/bridge: tc358762: Set pre_enable_prev_first Date: Tue, 31 Jan 2023 14:18:24 -0800 Message-Id: <20230131141756.RFT.v2.1.I723a3761d57ea60c5dd754c144aed6c3b2ea6f5a@changeid> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756579219007858883?= X-GMAIL-MSGID: =?utf-8?q?1756579219007858883?= Set the "pre_enable_prev_first" as provided by commit 4fb912e5e190 ("drm/bridge: Introduce pre_enable_prev_first to alter bridge init order"). This should allow us to revert commit ec7981e6c614 ("drm/msm/dsi: don't powerup at modeset time for parade-ps8640") and commit 7d8e9a90509f ("drm/msm/dsi: move DSI host powerup to modeset time"). Cc: Dave Stevenson Cc: Dmitry Baryshkov Cc: Abhinav Kumar Signed-off-by: Douglas Anderson Reviewed-by: Dave Stevenson Reviewed-by: Dmitry Baryshkov --- (no changes since v1) drivers/gpu/drm/bridge/tc358762.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/tc358762.c b/drivers/gpu/drm/bridge/tc358762.c index 0b6a28436885..77f7f7f54757 100644 --- a/drivers/gpu/drm/bridge/tc358762.c +++ b/drivers/gpu/drm/bridge/tc358762.c @@ -229,6 +229,7 @@ static int tc358762_probe(struct mipi_dsi_device *dsi) ctx->bridge.funcs = &tc358762_bridge_funcs; ctx->bridge.type = DRM_MODE_CONNECTOR_DPI; ctx->bridge.of_node = dev->of_node; + ctx->bridge.pre_enable_prev_first = true; drm_bridge_add(&ctx->bridge);