Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1466131iob; Thu, 5 May 2022 01:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVBjZd1cdgn/a/te2XS6gsBt/aK9ApmWwrlAqlpuySSVt2Vxp+CXgnL5N8yCdhQhAl2kYU X-Received: by 2002:a65:60d3:0:b0:39c:f431:5859 with SMTP id r19-20020a6560d3000000b0039cf4315859mr21237689pgv.442.1651740280744; Thu, 05 May 2022 01:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651740280; cv=none; d=google.com; s=arc-20160816; b=hk+IuYtGEX6TZK1oL2M5vffFNzdxrYXpA46i+FLcg4vn4HxoTK1kPgvs/b2C/Ak1YR dK9wCYTQWGx4N3LTGBlaN68FtgJx2OSCDv54Ri9hBF6DenFvXJP6t5r9GnmvRAY/UM/f ODZKYEGNGfNmKbBu4M9OGcvjekR4/ppXbR4W3y3ajaEJPKF97zWi1rte1gGHY2BKLd9q Qg5vxqHB2QGyTtz4c9XYY5iMCDsrpqQJBtJ/aS/4XUWHiSigQGixUQSBth1/Ok8sSEbv SpVVrfuZYKSHfbnP4dOzFJ7VS9MjGKe69UqU0Kv0xa13L+45o61Gtc0MQ6hWHMpO6wh4 359Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=UEdjlSWbPNodoYMxMQh4+HmwveeXvhVk46I6Hzv0bH0=; b=IEPV9Ep4ZEpmyvLMHLBbpoq+02cIlkJHUwwpDJVTC8/DKzAh2G8e+BBolAJc+N0WQO ZnRxG98CEag2Qb6dyp2EeycSqaL2j7IANdzyG7VxKnfup4zwxfSXbFJegN5uUrD6/fBY KNjnJaAb7leLuZYzTcY5w8lZWrNtYkpm/F/PY5NhKIqWy2g7/EqoBoWEIZ3PBAbnSv8o UrdHcI9rh+RmPhKThW0qPY5tB9EvUJ4CYerEkUZ6mbpbytMiwpIigAHUGus10yg5RaWV EF2s3RIHDN6hdLWf9R+KUop3wBR9RXiX9ULa6k5n+ku9U1eXiT9LW4M6Z0NOdfVx9Ija viKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=SsZLYZ68; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=iQpXcN+g; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x20-20020a17090a531400b001d931aa3f3fsi7029175pjh.184.2022.05.05.01.44.26; Thu, 05 May 2022 01:44:40 -0700 (PDT) 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=@cerno.tech header.s=fm3 header.b=SsZLYZ68; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=iQpXcN+g; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351910AbiEDPMo (ORCPT + 99 others); Wed, 4 May 2022 11:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351949AbiEDPMi (ORCPT ); Wed, 4 May 2022 11:12:38 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB0231908 for ; Wed, 4 May 2022 08:09:02 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 79A68320095B; Wed, 4 May 2022 11:09:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 04 May 2022 11:09:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1651676939; x=1651763339; bh=UEdjlSWbPN odoYMxMQh4+HmwveeXvhVk46I6Hzv0bH0=; b=SsZLYZ68asGqDK4yqfCQO//8Qq 99Hf8tuc1JAf07YZBpL/VAp/1Tew1HQnKZhA4+k0KbVqHyPbGHrrIql/NHkFLRo8 vGxOBmbdIMOgaDm7fOtye/dGuHtDosM4hzcagiUxIkAFT04j+md0j8mDuDdUpQl1 1GFrOOaZ5b72FC4h1BPwQTBkOtBNJ1krM1MDLX7o/91ah6MNjmUXdD7aQkr1pAcI COUeNGGVAOf+AQsrNjaJiQhw28APXGXCvjenCMD3qK68a56v4TLtSjKfIYZPkEKr xT++qXSMZi0yxQbPxySKS0fvUJ74TjtvxYXYB/s/qPnY+xRsOAlaMoUMLqpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651676939; x= 1651763339; bh=UEdjlSWbPNodoYMxMQh4+HmwveeXvhVk46I6Hzv0bH0=; b=i QpXcN+gGu/9LPcZEFG7KhtY++OihFWOUiRLnb0FC04O3HjEIMQ9GJAsY0h1RUJ0Q OoxCRyddG96WsIlDklKKMp76NBLK7ByqcFoDPQGjoRkYvO2NRyTQy4U6+iTvQSe7 sxPgedAVLwKt0lcuQiNuTzUhedHcyb56VKegaCc7avdZ0Ef5pnjhIdbb5kuNOt/i pMtp7OxTropz7QSZNbxLcpG8ZzL4/Zi5N0oU+p1EdnE0XfrDDqOupDXBc3A6y4ob Q4VhBRe8cJWokGkH8Q1kQCNGHhQcGzz4ISSINKPNkvH85izBbpcEZ2KmXUrDaic7 oR0vMDo+/V8bV0FcUHz6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepteefffefgfektdefgfeludfgtdejfeejvddttdekteeiffejvdfgheehfffh vedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 May 2022 11:08:58 -0400 (EDT) Date: Wed, 4 May 2022 17:08:57 +0200 From: Maxime Ripard To: Laurent Pinchart Cc: Jagan Teki , Paul Kocialkowski , Bjorn Andersson , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Thierry Reding , Rob Clark , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Linus Walleij , Marek Szyprowski , Robert Foss Subject: Re: [PATCH 2/2] Revert "drm: of: Lookup if child node has panel or bridge" Message-ID: <20220504150857.7dhg3gtlgiwadhlm@houat> References: <20220421082358.ivpmtak3ednvddrc@houat> <20220427143410.bectqumq62qmlv5x@houat> <20220429154645.47tsii47vjxqklca@houat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qfv6kjxcghrfgsyc" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --qfv6kjxcghrfgsyc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2022 at 07:05:59PM +0300, Laurent Pinchart wrote: > Hi Maxime, >=20 > On Fri, Apr 29, 2022 at 05:46:45PM +0200, Maxime Ripard wrote: > > On Fri, Apr 29, 2022 at 01:17:26AM +0300, Laurent Pinchart wrote: > > > On Thu, Apr 28, 2022 at 02:09:42PM +0530, Jagan Teki wrote: > > > > On Wed, Apr 27, 2022 at 8:04 PM Maxime Ripard wrote: > > > > > On Tue, Apr 26, 2022 at 01:40:31PM +0530, Jagan Teki wrote: > > > > > > On Tue, Apr 26, 2022 at 1:24 PM Paul Kocialkowski wrote: > > > > > > > On Thu 21 Apr 22, 10:59, Paul Kocialkowski wrote: > > > > > > > > On Thu 21 Apr 22, 10:23, Maxime Ripard wrote: > > > > > > > > > On Thu, Apr 21, 2022 at 01:15:54PM +0530, Jagan Teki wrot= e: > > > > > > > > > > + Linus > > > > > > > > > > + Marek > > > > > > > > > > + Laurent > > > > > > > > > > + Robert > > > > > > > > > > > > > > > > > > > > On Thu, Apr 21, 2022 at 4:40 AM Bjorn Andersson wrote: > > > > > > > > > > > > > > > > > > > > > > Commit '80253168dbfd ("drm: of: Lookup if child node = has panel or > > > > > > > > > > > bridge")' attempted to simplify the case of expressin= g a simple panel > > > > > > > > > > > under a DSI controller, by assuming that the first no= n-graph child node > > > > > > > > > > > was a panel or bridge. > > > > > > > > > > > > > > > > > > > > > > Unfortunately for non-trivial cases the first child n= ode might not be a > > > > > > > > > > > panel or bridge. Examples of this can be a aux-bus i= n the case of > > > > > > > > > > > DisplayPort, or an opp-table represented before the p= anel node. > > > > > > > > > > > > > > > > > > > > > > In these cases the reverted commit prevents the calle= r from ever finding > > > > > > > > > > > a reference to the panel. > > > > > > > > > > > > > > > > > > > > > > This reverts commit '80253168dbfd ("drm: of: Lookup i= f child node has > > > > > > > > > > > panel or bridge")', in favor of using an explicit gra= ph reference to the > > > > > > > > > > > panel in the trivial case as well. > > > > > > > > > > > > > > > > > > > > This eventually breaks many child-based devm_drm_of_get= _bridge > > > > > > > > > > switched drivers. Do you have any suggestions on how t= o proceed to > > > > > > > > > > succeed in those use cases as well? > > > > > > > > > > > > > > > > > > I guess we could create a new helper for those, like > > > > > > > > > devm_drm_of_get_bridge_with_panel, or something. > > > > > > > > > > > > > > > > Oh wow I feel stupid for not thinking about that. > > > > > > > > > > > > > > > > Yeah I agree that it seems like the best option. > > > > > > > > > > > > > > Should I prepare a patch with such a new helper? > > > > > > > > > > > > > > The idea would be to keep drm_of_find_panel_or_bridge only fo= r the of graph > > > > > > > case and add one for the child node case, maybe: > > > > > > > drm_of_find_child_panel_or_bridge. > > > > > > > > > > > > > > I really don't have a clear idea of which driver would need t= o be switched > > > > > > > over though. Could someone (Jagan?) let me know where it woul= d be needed? > > > > > > > > > > > > sun6i_mipi_dsi > > > > > > > > > > It doesn't look like sun6i_mipi_dsi is using devm_drm_of_get_brid= ge at all? > > > >=20 > > > > Correct, patch for this on the mailing list. > > >=20 > > > I've lost track of how we're solving the fallout of this for v5.18. I > > > have received a report that the original commit (80253168dbfd) also > > > broke the rcar-du driver. Could you please provide a git branch (based > > > on drm-fixes or drm-misc-fixes) with any patch that you plan to get > > > merged in v5.18, to let me test them locally ? > >=20 > > Was that report about 5.18 or drm-misc-next? It appears that all the > > drivers conversions are in drm-misc-next. >=20 > v5.18-rc2. I've double-checked, and it has been bisected to commit > 67bae5f28c89, which is a fix of the commit this patch reverts > (80253168dbfd). We've reverted 67bae5f28c89 in -rc4, so it should work just fine now Maxime --qfv6kjxcghrfgsyc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYnKXCAAKCRDj7w1vZxhR xdIjAQCFn3vpzZMcN+0pRgWibfT9JVeBJr8XuM6qdmRpPJ46SgEAsz+6o/m6DC24 bTocO9sA/LABD7/OqSwSMVfnDNlieAw= =qF30 -----END PGP SIGNATURE----- --qfv6kjxcghrfgsyc--