From patchwork Fri Jan 13 23:56:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 43652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp28749wrn; Fri, 13 Jan 2023 16:04:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXsBoU37pvS41bQNa03jcsXGQpTDFuqV4y/b/apA9Nb1ufxh5AgrPfyFlg/2ze3zi6+HRw9A X-Received: by 2002:a05:6402:547:b0:499:bec8:4d with SMTP id i7-20020a056402054700b00499bec8004dmr1457634edx.32.1673654655741; Fri, 13 Jan 2023 16:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673654655; cv=none; d=google.com; s=arc-20160816; b=nG5nf37kcH8e9b2bJ+11k7TqEAcwPz5FfRWMUqm9MFLLRHzUfDL6yw/S6lJfQXNnf5 rBAacpoQVw8UzMFsiSuwS/c+gjVwqhCaVAzv4RjWMAvTHONVhUe4m5U1hxycR6A1E+o9 xeBc399mModXT0jftfYNWvMQtl3cxa37fhPYfdaMvRcVgcn8D5xEi2K0uMypSN26lLCX RrMASbcbJCTxOAXz47A/4cCQ63/7+r/8Gde0hOQWdbfa0DYyIsUP/wI6ZBvdjNcvNTBu RxlfAPYUjwUWcpw7WL2Woz1ZckR8SAZ9TRjEX0DIo8k+2d+rsbbwyp0LpObkOcH14LVn bUbw== 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=5+evsYAc3b1lQ5lkyPBOLTAudAqBRHFoDkoyn9gzcWU=; b=SIRYA6jrBHDqQ/wtn6Utbpu3bjw9vhC/isL3KjrRi1u9mA97Z6afqlGjMhXKTdTec0 twnkgxGD1hP2CkW/32zIo6qmu0mkKPG6Kg3Dbr4+azELPRWhbaK63ncVPy/ZcDVwB165 hSya1xrloW3lmtk9OvxxgkB2h2b0rU0lr+Y86yMR2DBKh2k3qEzabiLp8xG7K/578NM8 xPewFN5j41VY6KlWwcEMhr3MPrpXoXPGV1CPJzXyojsdddG01/nkRx9GdhkTG8KgFw9F ph+202rl7MgsP2toXgYng/bxr+7MF4whO8iO8GMEaE2ofljDQLwPyShnJf4HDsxhNWI2 zpuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bglNrXXz; 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 v22-20020a056402349600b0045cecdc1fbcsi29587639edc.9.2023.01.13.16.03.21; Fri, 13 Jan 2023 16:04:15 -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=bglNrXXz; 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 S231163AbjAMX4k (ORCPT + 99 others); Fri, 13 Jan 2023 18:56:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbjAMX4f (ORCPT ); Fri, 13 Jan 2023 18:56:35 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A417E2DE7 for ; Fri, 13 Jan 2023 15:56:34 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id i65so13829679pfc.0 for ; Fri, 13 Jan 2023 15:56:34 -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=5+evsYAc3b1lQ5lkyPBOLTAudAqBRHFoDkoyn9gzcWU=; b=bglNrXXzl+zfB88DcX28XESqwrqWNa2PfHlGEAegGmswKUvIEGuclPlzAGHJAX4jCa JS45SdnMg4dw/bRTbacQImuLolP2g4t6Xy/VSB3Vr6FXhf/nsHLl/zrsvI+YI1cS/bWg 79LDXePloaL1xmygJa8gaMTVJUaxRy4BV/MC8= 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=5+evsYAc3b1lQ5lkyPBOLTAudAqBRHFoDkoyn9gzcWU=; b=OIBBX/hc10qy+0iBRlB+lydTiB1ywtSGR/O255PykXEfm5vl2EvmdRj/hKCAhQEYgq TqcB8xtC7nmntBbRbzsQ5eJ+QUMimD0o9/Nrcj75NbUYLeNOJ+6+wbmQB67fXSE9nY+S kdSFGDhdYZW2Qh5DlrdGKnAek9CddgxoBbWgysM/roE2EVE6rTLzWgHuriidSpO+bq9X yLbblmXdnnsBPsppjZUybEhP/XHtYNoxOB6Nb801sCCvd2hNTI8NTOMh14FX+qEr4cLe MQ4lfspYI+iF0aDGE5MMdoUkpctp9apY541EAds8ri20tq9Q8Sceo3oRBDQqgKNW0MDf Ot8A== X-Gm-Message-State: AFqh2kqRpJ+CYirP/SEW7W1QWL71ww/SAVKfHWpDZlCD5qq/bDS2Glxv Plax78+0UcUk9dB2t3VvgZ20oQ== X-Received: by 2002:a62:2746:0:b0:58b:af27:dcda with SMTP id n67-20020a622746000000b0058baf27dcdamr5847832pfn.14.1673654194182; Fri, 13 Jan 2023 15:56:34 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:b4ad:3c49:1195:a01e]) by smtp.gmail.com with ESMTPSA id f10-20020aa79d8a000000b005823b7da05asm10002737pfq.122.2023.01.13.15.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 15:56:33 -0800 (PST) From: Douglas Anderson To: dri-devel@lists.freedesktop.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov Cc: Daniel Vetter , Andrzej Hajda , Dave Stevenson , Robert Foss , Sean Paul , Jonas Karlman , Laurent Pinchart , Neil Armstrong , David Airlie , linux-arm-msm@vger.kernel.org, Stephen Boyd , Jernej Skrabec , Vinod Koul , Douglas Anderson , linux-kernel@vger.kernel.org Subject: [RFT PATCH 1/2] drm/bridge: tc358762: Set pre_enable_prev_first Date: Fri, 13 Jan 2023 15:56:03 -0800 Message-Id: <20230113155547.RFT.1.I723a3761d57ea60c5dd754c144aed6c3b2ea6f5a@changeid> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-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=ham 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?1754954104094167093?= X-GMAIL-MSGID: =?utf-8?q?1754954104094167093?= 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 --- 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);