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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D010C6FA8E for ; Thu, 2 Mar 2023 17:34:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbjCBReP (ORCPT ); Thu, 2 Mar 2023 12:34:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjCBReN (ORCPT ); Thu, 2 Mar 2023 12:34:13 -0500 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FCB01A64C for ; Thu, 2 Mar 2023 09:34:11 -0800 (PST) Received: by mail-ua1-x933.google.com with SMTP id d12so6694583uak.10 for ; Thu, 02 Mar 2023 09:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VaTqYDyLafiZL0B3tSJBwk7qRC++RXXMoAq4jrwnI7o=; b=C826dozkSH2GhW7IjIMlV8In/06pLnzjwoHZB+d+h/IYrBwP0YZqr/fF9tgX08GhF6 rZLr3jiUcxiSCRgDVaX+2PqjWd99zGCQLT+nq3vj5P/GQ08fy/JwwaElBZ9jHnBQM9qM 6pjrbGtsEd/78qwHv5h9HrKcYWNVf/uZuGwW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VaTqYDyLafiZL0B3tSJBwk7qRC++RXXMoAq4jrwnI7o=; b=zqy+iXlq7AGJMwEjkp5bds4WBQMo7r5gxgzOVjHTCs9JPXJILVVBkbk4qUfRgLiEmt AMSmmRO3dOD0WQVUes0zdVdKGx0hmCUABgi7HTNqD7L2jySFytw9jh5Uppf6eedmq4ez CHyd/cesq8AXp2RL0RMdzWDkGHm3+zbhu9SiepLVV+R8Ym/RRoXeGhWH8hFHBOYIxsZG IlyQMB42Ot9+pSWdERnvnKGm2p4x2n2pSsY3EMWqgS6kLR5G9AU1BRS28NX+V6NfHBu1 Z+bbwHtfhFPsfRMW0LEozuntfMEsrIzOzyLhADgTd/DINpdgPKupPgeQA4duZdYsRLF6 hULA== X-Gm-Message-State: AO0yUKXnr5ZpZe8KxwJzSr8vxKp8xSIwV1wJCKNukSECyijFRbsCYDmV LQLZcXY5MWmFHnzjeZ4isqh3FgWb3qlag+0/ X-Google-Smtp-Source: AK7set+MWMVxDbKKN+bD31+wRH8VkZ/PxBxP2bKm9wYowoOxjaKXNrrV/pN8PzsQ9B/44fB78R1hAg== X-Received: by 2002:a1f:1dd0:0:b0:401:c7c8:4605 with SMTP id d199-20020a1f1dd0000000b00401c7c84605mr4479998vkd.14.1677778450341; Thu, 02 Mar 2023 09:34:10 -0800 (PST) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com. [209.85.222.49]) by smtp.gmail.com with ESMTPSA id j4-20020a056102114400b0041ec99a5913sm1648770vsg.29.2023.03.02.09.34.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Mar 2023 09:34:10 -0800 (PST) Received: by mail-ua1-f49.google.com with SMTP id g19so1020319ual.4 for ; Thu, 02 Mar 2023 09:34:10 -0800 (PST) X-Received: by 2002:a92:a005:0:b0:316:ff39:6bbf with SMTP id e5-20020a92a005000000b00316ff396bbfmr4912637ili.6.1677777959145; Thu, 02 Mar 2023 09:25:59 -0800 (PST) MIME-Version: 1.0 References: <20230131141756.RFT.v2.1.I723a3761d57ea60c5dd754c144aed6c3b2ea6f5a@changeid> In-Reply-To: From: Doug Anderson Date: Thu, 2 Mar 2023 09:25:47 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT PATCH v2 1/3] drm/bridge: tc358762: Set pre_enable_prev_first To: Dmitry Baryshkov Cc: Dave Stevenson , dri-devel@lists.freedesktop.org, Rob Clark , Abhinav Kumar , freedreno@lists.freedesktop.org, Jernej Skrabec , Jonas Karlman , linux-arm-msm@vger.kernel.org, Neil Armstrong , Robert Foss , Stephen Boyd , Vinod Koul , Laurent Pinchart , Andrzej Hajda , Sean Paul , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Feb 27, 2023 at 5:24=E2=80=AFPM Dmitry Baryshkov wrote: > > On 28/02/2023 02:26, Doug Anderson wrote: > > Hi, > > > > On Wed, Feb 1, 2023 at 1:51=E2=80=AFAM Dave Stevenson > > wrote: > >> > >> On Tue, 31 Jan 2023 at 22:22, Douglas Anderson = wrote: > >>> > >>> 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"). > >> > >> I see no reference in the TC358762 datasheet to requiring the DSI > >> interface to be in any particular state. > >> However, setting this flag does mean that the DSI host doesn't need to > >> power up and down for each host_transfer request from > >> tc358762_pre_enable/tc358762_init, so on that basis I'm good with it. > >> > >> Reviewed-by: Dave Stevenson > >> > >>> Cc: Dave Stevenson > >>> Cc: Dmitry Baryshkov > >>> Cc: Abhinav Kumar > >>> Signed-off-by: Douglas Anderson > >>> --- > >>> > >>> (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/brid= ge/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 =3D &tc358762_bridge_funcs; > >>> ctx->bridge.type =3D DRM_MODE_CONNECTOR_DPI; > >>> ctx->bridge.of_node =3D dev->of_node; > >>> + ctx->bridge.pre_enable_prev_first =3D true; > >>> > >>> drm_bridge_add(&ctx->bridge); > > > > Abhinav asked what the plan was for landing this [1]. Since this isn't > > urgent, I guess the plan is to land patch #1 in drm-misc-next. Then we > > sit and wait until it percolates into mainline and, once it does, then > > patch #2 and #3 can land. > > > > Since I have Dave's review I can commit this to drm-misc-next myself. > > My plan will be to wait until Thursday or Friday of this week (to give > > people a bit of time to object) and then land patch #1. Then I'll > > snooze things for a while and poke Abhinav and Dmitry to land patch #2 > > / #3 when I notice it in mainline. If, at any point, someone comes out > > of the woodwork and yells that this is breaking them then, worst case, > > we can revert. > > This plan sounds good to me. Pushed to drm-misc-next: 55cac10739d5 drm/bridge: tc358762: Set pre_enable_prev_first If my math is right then I'd expect that to get into mainline for 6.4-rc1. I guess that means it'll be in Linus's tree mid-May. I'll schedule a reminder to suggest landing at patches #2 and #3 again in late May. -Doug