Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5239586pxv; Wed, 28 Jul 2021 06:30:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpXTkiGi2dpFLRyBEOAe4tPzv1X9GbYe6qFeJU3Ze+wZvuR7gpKTkcf8uPX9uXyJmACp6v X-Received: by 2002:a02:aa15:: with SMTP id r21mr572jam.37.1627479023214; Wed, 28 Jul 2021 06:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627479023; cv=none; d=google.com; s=arc-20160816; b=Z9EXs2x9nN3Tbus2LuKZlJ1V/CsjDmYtn9VBZ5i+QtQXzINKaRR85e81XfXGO9ou0Y drTAoKQydA56EZlzWpEh4erj3eY7Ya3DViu2rvI/xe2+Mo4MkTXpVNoljHKmmj8Htq1X jENqYOKUvWwFnY70wpX4cid7pPYugwj+8atP/OK5hL8xnhHgAmOWBZALQzIA5ytWFAt1 H4in1sQFMWn/ua3ThY9YuB8okGLXflOeef20iPMLD0zuaERXidVdFbbvoDjhz6KphjC3 JCa/L1k3sUZymbc/NneA83dCo4FNFUdgs6Zyr9fZYZSk3TWvxCW6B+LU4e65No5CNPOO NzOw== 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:to:from:date:dkim-signature :dkim-signature; bh=QNlSOB6XFbHWykgqVLPHDrgx3CKE3KWvg12VK5u4qnc=; b=zMb+GR0946FsPqhVugmFjIcJTLU3l5dfLdrSEdsacC2W4Ia1PDtfXk0bPmf0hoc9Pb yiFSFyCPJnWONukrmupR4z/cjLcQ7ON1KRGjYatoKL3tiR4xI07K9xaQ7CL/qxWOyDBN gbe16zwcwXFGFD/O6WG/syocEEv+SU8YnStuA/yugqFa3+QTNiScMDdx/EfPFWs4ga+0 6khIBTNxp7AusvCJ6HCZa5a6AUSFfZ6M1CwUG1Nc/96hfg45LNjVk3vCgQk2UzohYsTn rifsFLm713nTdL7snG/TJE6/A5O6b7m8MxKrrgI3g+NlRnpONfQfwkvPi558kuOveb99 Ic8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=i771LHsL; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gKitsHKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si3282605iol.30.2021.07.28.06.30.09; Wed, 28 Jul 2021 06:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=i771LHsL; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gKitsHKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235346AbhG1N1v (ORCPT + 99 others); Wed, 28 Jul 2021 09:27:51 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:44293 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbhG1N1t (ORCPT ); Wed, 28 Jul 2021 09:27:49 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 96498580ACE; Wed, 28 Jul 2021 09:27:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 28 Jul 2021 09:27:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=QNlSOB6XFbHWykgqVLPHDrgx3CK E3KWvg12VK5u4qnc=; b=i771LHsL2XgcoWhBfBpDwu2ryEp6KMGG1CxT3wT4dtO pKe5X8rx7UcI0l7zmUbwzHP6gR2bZgVOuF57usbKBjqfoV+S9yo+CT9be9bl0g4g GsuyunBj0G7Yl2k8/AYF/dSB1i5FBWksENAxc3jgVb5pdxLs3RZ/1vL61RI1+gGZ uscJ5LGxKpprZPUheIcvjVcBx5xUrb3auRLu/mk1bJn+2GCzGbJYeq60BRCp6t/d rvnlAhhryMW5nips5Ai+NlVKpIUVAZM64OVOipkf3tjwz5vVCU2PZnu8aw3C4dPE m4sNLwF9z2A3Gj3vV3jc2/91jEII6ydj9JfBDaCf3tg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=QNlSOB 6XFbHWykgqVLPHDrgx3CKE3KWvg12VK5u4qnc=; b=gKitsHKTvAPvou8vzx5Vh+ 6lnGRVDkHp2bdI6Dqfhi1P6oCorIK9gXdBiUsccSU+5+elsVuDRIf3jpnjIAAot8 nJt+4w3/q1JCyA5nJ7MAGtrS/T/PZNJqWOh7l2IzjbnBu6GyRrhOM+ijXuj4YIjv PA1/zEMa0k7QzI0fDkReqIJP8PhFXcyKe2lsVuJ/FXR70hOMBKRCPmKBO9wU41Jy PsqBVcAqP9jL3w2leWXJiJLvOsyU/OVSmrx8oRFqrLFZo7QPUm5OpV649gp8PbUU 3PlGwFbVORndHaNtsu+rWaIiaUuwy4YsBYYL8u6RZOA7WkoFye5icgQtL6+At/Fg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdeiudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jul 2021 09:27:44 -0400 (EDT) Date: Wed, 28 Jul 2021 15:27:41 +0200 From: Maxime Ripard To: Robert Foss , Andrzej Hajda , Daniel Vetter , David Airlie , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Thierry Reding , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 04/10] drm/bridge: Document the probe issue with MIPI-DSI bridges Message-ID: <20210728132741.dzqqohi34cm56q6j@gilmour> References: <20210720134525.563936-1-maxime@cerno.tech> <20210720134525.563936-5-maxime@cerno.tech> <20210726151657.c46qmkdvqfhlg6ox@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xeh2a4js4i5wzele" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xeh2a4js4i5wzele Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jul 27, 2021 at 11:20:54AM +0200, Daniel Vetter wrote: > On Mon, Jul 26, 2021 at 05:16:57PM +0200, Maxime Ripard wrote: > > Hi Daniel, > >=20 > > On Wed, Jul 21, 2021 at 02:05:01PM +0200, Daniel Vetter wrote: > > > On Tue, Jul 20, 2021 at 03:45:19PM +0200, Maxime Ripard wrote: > > > > Interactions between bridges, panels, MIPI-DSI host and the compone= nt > > > > framework are not trivial and can lead to probing issues when > > > > implementing a display driver. Let's document the various cases we = need > > > > too consider, and the solution to support all the cases. > > > >=20 > > > > Signed-off-by: Maxime Ripard > > >=20 > > > I still have this dream that eventually we resurrect a patch to add > > > device_link to bridges/panels (ideally automatically), to help with s= ome > > > of the suspend/resume issues around here. > > >=20 > > > Will this make things worse? > > >=20 > > > I think it'd be really good to figure that out with some coding, sinc= e if > > > we have incompatible solution to handle probe issues vs suspend/resume > > > issues, we're screwed. > > >=20 > > > Atm the duct-tape is to carefully move things around between suspend = and > > > suspend_early hooks (and resume and resume_late) and hope it all work= s ... > >=20 > > My initial idea to fix this was indeed to use device links. I gave up > > after a while since it doesn't look like there's a way to add a device > > link before either the bridge or encoder probes. > >=20 > > Indeed the OF-Graph representation is device-specific, so it can't be > > generic, and if you need to probe to add that link, well, it's already > > too late for the probe ordering :) >=20 > But don't we still need the device_link for suspend/resume and module > reload? All very annoying indeed anyway. I guess we would still need it for proper suspend and resume ordering (but I never really worked on that part, so I'm not sure), but it's a bit orthogonal to the issue here since those can be added after probe Maxime --xeh2a4js4i5wzele Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYQFbTQAKCRDj7w1vZxhR xSEmAPwOxQqXDdghNM0po6K1BOfqhKogINFRlAFlP5KeBW1/NAEA2aO57tmIfUAX GMjL4BMs5AuKDiq2tZVSX3PJcror+wg= =fRPC -----END PGP SIGNATURE----- --xeh2a4js4i5wzele--