Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp971239pxb; Thu, 21 Apr 2022 14:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi7D1G0/23qI3w6n8BFV3nPfdwjSeOmFgDOlwZLvb9fp76kqpN2iP3WKikdXrGlZxPmQww X-Received: by 2002:a17:90b:3b43:b0:1d2:eb6b:a7ad with SMTP id ot3-20020a17090b3b4300b001d2eb6ba7admr1803700pjb.84.1650578182460; Thu, 21 Apr 2022 14:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650578182; cv=none; d=google.com; s=arc-20160816; b=TwC6Xw6mhnowPergS3o2XT1Q75bU4XYwI6MHcU6KmBfvkzDzQ6U4atPplm5lmB+SeD yUgnqDZ5x/JXfnYloX5Iz6Hffj73cmS+9qq7J/t6A3LcPzNTbhm3waiL0ChHQ9zD9OuD djcHmVzfGeD00jzv9TOmIUsYY0xmDnoKPRfMLJAtANEHzC0OXaziHYSncyQCVvgrhqw7 NvNWV6DE9ylGwWZxaEvRKqDsHOhwCbC8XV3gwau6q0hNmLFLDqRPYnB+PM4Tkg5TRC1i 0iPzUZlIoILct1MOOhOqqt9ORF4HY1mgCcnY/N2mZ73zOoIWahulB/6Ms8n5llvp0Q2l EGvw== 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; bh=Mq8173Yhb7PWseSDb2n4pQrTc0Fh+GdWcB9T/uTdM2M=; b=O3Pi8R5gDMYbn0+7U5IdJsAphhMjf+l97u2ziDwBG7NMVJmJdXacILt9DItBAkUe9h 8nr2dsWR504Unla1zB7hFnlFZuF/72yAdHzdrSjEKOU/bhj+MjHZagewUPEVs1RSKhZE Jak0dGBnh5egFnq4WVFkEw/kwrW6GRxruvrc/cPuKehxHZ7TwTRu9OaJwtAX5hbA/REF 2FZcgZLHFZDSwSX2oDgNktvyNqbxbqnYYeY6o1TGcoQfpdZFzMUnlp3HYeInR9aYn48K UikfuunXqLMQjx+MajQMy8gAeAhjfq4mYzDnvlPYaOivpIkkIBRFOyKjvEs8dzLzFdh/ nmAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=HpO7PHru; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a63f947000000b003a26d5f4c3fsi6647197pgk.712.2022.04.21.14.55.57; Thu, 21 Apr 2022 14:56:22 -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=@bootlin.com header.s=gm1 header.b=HpO7PHru; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238845AbiDSJ7j (ORCPT + 99 others); Tue, 19 Apr 2022 05:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbiDSJ7g (ORCPT ); Tue, 19 Apr 2022 05:59:36 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189082127D for ; Tue, 19 Apr 2022 02:56:53 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5EC0F240004; Tue, 19 Apr 2022 09:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650362212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Mq8173Yhb7PWseSDb2n4pQrTc0Fh+GdWcB9T/uTdM2M=; b=HpO7PHrughSJxpPdJhGONJgxyf/vZiM5hnkdHg2WbBKu/FgmsuQ4mxb7LXxMz7f3DhyuEN OTiDujbFsmL3Cu2rxisww3BxUdCbsTiOIs6J31m4sw3Uz5F0Y40B/XzOW/yP0QWwNNH9Ok uZqVLxS9/yCfLkhWUCUqiGC+QZp7pbAGqELsIbrnQ7DOd7NvBBs/eBKjwF/JS1Q9VsfscM eAtqgharoXWYaS+2+HR907QYRSIbXGf2gx99+xWVsGxpA1V24Wv6kqpJfagspDObipq29r GuKPPZFaXyCSYJ1gz9N1KRGml+dxDafact1+n36DXtCK4cGP5YNKpH1AzcERTg== Date: Tue, 19 Apr 2022 11:56:50 +0200 From: Paul Kocialkowski To: Paul Cercueil Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, jagan@amarulasolutions.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, thomas.petazzoni@bootlin.com, tzimmermann@suse.de Subject: Re: [PATCH v3] drm: of: Properly try all possible cases for bridge/panel detection Message-ID: References: <20220329132732.628474-1-paul.kocialkowski@bootlin.com> <20220416222141.72321-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XgDB20WdwLjkKw76" Content-Disposition: inline In-Reply-To: <20220416222141.72321-1-paul@crapouillou.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 --XgDB20WdwLjkKw76 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Paul, On Sat 16 Apr 22, 23:21, Paul Cercueil wrote: > Hi Paul, >=20 > This patch breaks the ingenic-drm driver. >=20 > It calls drm_of_find_panel_or_bridge(np, 0, i, ...) starting for i=3D0, u= ntil > -ENODEV is returned, which does not happen anymore. >=20 > The idea is to probe all the connected panels/bridges, should it be done > differently now? I've sent out a different patch which restores -ENODEV at: https://patchwork.freedesktop.org/patch/481135/ Feel free to try it and reply with tested-by/reviewed-by there. I've also made a proposal in the thread to skip the "child node" mechanism as soon as an of graph is present, which would allow covering more legit cases with -ENODEV (the patch linked above doesn't cover all cases that need -ENODEV). Ideally we'd like to remove the child node mechanism entirely, but it may already be part of a device-tree binding spec. Cheers, Paul --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --XgDB20WdwLjkKw76 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmJeh2IACgkQ3cLmz3+f v9GBKAf8DA/g/QCGdK6HmqooGT+X0CNX9NbaVBgCVkWL/wnG+MEsNTNY0g54m8h/ yQexs7+ZudJ19RzZAtJFgj3zcc9u/VXYxipI5Q+zFp9Q7UEuNDfZLS1yxSN+hfr9 fEK1YarFnb/uo/mCWiP2SAJiDtipJe+flEzyutHK6Jf1p2jyAbED4DlZTED8fN1X uBkMw63pnPdzJcdx0+sm8xLnbY/bkaMjJasIjmfiimQsI09g+TCu5bBlEJIuMDG9 2XrTsUWWN7kex6f+cMakL4nhwL8EM1Hmysga6S4cODnhzJqEODXjMiKtCI+yB+hP UEUj0lqOrQcgo/RpuKQiFQZxCSkhFA== =RY5S -----END PGP SIGNATURE----- --XgDB20WdwLjkKw76--