Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3374266pxv; Mon, 28 Jun 2021 03:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtIW6SNc6mXCFqs15HwrgHS/A3cqsfhjEpXfS0hJGBSryG9hGl7PTwZPVf0KVeAhhJAbFI X-Received: by 2002:a5d:9549:: with SMTP id a9mr20062700ios.152.1624875222879; Mon, 28 Jun 2021 03:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624875222; cv=none; d=google.com; s=arc-20160816; b=dvu3opGjGGFAnruT7LLQgISIPytGvr3ZXkm3dqgAG28ekfwr+mKYOxG8xd7qAWH2cJ FeGi1l69H1QQ98P75tcdFZhWh6toDGjrOMoJw4g0LlbTKR+PhgTSzO/ZnBiglctgMg2h Z+cZO83vvRiMPmZLzJz1cXu3NElFRBnxGKGLw/eyrV5xKOhbxSeAru8RcOZ8ZRKbr9Xn KbZszpBn5yaun2qCHJXzw+fWwIRk6Y3NAmwQ9viDpb9CcrRs6A/6Mn4Gx7pku8iI0whu 5n8TYQ0zVlCMoM6JPzFETYaAot7rA0yxkpdJUg8u7y/im5yusHPaljnLHLhh7MeiqqrC l/2w== 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=G1ta7c/5/ThX06wXTeoCB5eCgJvsZJNMAJ9Re7t/XCY=; b=S7cQqHuWxEW4z76vdWK4F7qh0qDGbG63wBNkVhIOdm1iogq42xCNhNObpViDayjr48 vH2GC9RuHLqXsHDrJbM3bYxx4C5UNJ5ay0txYJ4x0fiW2rTnhaU/yG+W3LGd/gPbLOrS 048+axoirN0yFrZFcghQwNDgEGX55/QYeWqjYH/VQQrdLjMIqdL3DPmZwauUSn9yhwNJ M+JiM5WCcXWS50ioMBwFu8Ii8s0fHXdaUGsZlgYb+Jh9+KgilWoVbFYO84Ri32WLmUcA OG8c2CF9kRqQ9FmBt268FsIt1PzGP9ObAfpQ+zccR30xaRSjUBFZFRLEWu6mDN+v2ewq 3Zlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=zqK0dOCu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=WfbrO0P+; 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 d20si2897624ioo.61.2021.06.28.03.13.30; Mon, 28 Jun 2021 03:13:42 -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=zqK0dOCu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=WfbrO0P+; 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 S232503AbhF1KPF (ORCPT + 99 others); Mon, 28 Jun 2021 06:15:05 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:56635 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232889AbhF1KOg (ORCPT ); Mon, 28 Jun 2021 06:14:36 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id D1C692B00828; Mon, 28 Jun 2021 06:12:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 28 Jun 2021 06:12:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=G1ta7c/5/ThX06wXTeoCB5eCgJv sZJNMAJ9Re7t/XCY=; b=zqK0dOCuCE1noPGpc5CJksQS/smvQGb8Jolv2knBnCE ZlMy8mWmE7m0uknVyNTvOVsTxSbsGGCm9cn2b1rk/olrODnaczcN+T6bT766957N fDwTL8yWcU1NZb/9ayjpe9XI4Zatz7AZUyrLAvEmULb2hUgc+xiO941tXHi1x2JB jskcKAK7RLx3hNUUE4tos9TSCFKgftS/fFJw8TbARbRSMqqDvuhp0Pd83nwvK/BS i7FB697n6KHVXTlFCJ4YdSSg1k57217XtZtEk4JaqloWzVs/e1H2Vu0VLc8xjsKY PD2lRyxW5Nnny+5BN8JfXK0WrBHgJmXmPCj1bCZ7MfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=G1ta7c /5/ThX06wXTeoCB5eCgJvsZJNMAJ9Re7t/XCY=; b=WfbrO0P+LWj1h60MSG1mJM 1C7/kdqiLuWZRDHHGZZrg+SXS2ZUOg0zjb8RhUgnNt0dlG3OwVUOwdcXLTakQ/JM 4bKW3bbrnk96s1Z3wBUcfyt60jq1bpN96GNfXJINW10OcJVWYxsLknxEKDGr35xl FRQhSyEnslD5D2qTHZvyuMXarn0NvzO+lj2W+QPblPcp4GMmgmJaX4toLt60e6eK Mc+wiM2hW/a90BPLw0TA8EiHXMhbnOIpU1oyKJ37/kbn/DYyipbBNeyZuz8LmNPC ngM4lQjLUYbBxYHx7BPUxG/0oIYA8Jjac4EOy4JO15WlW8ie8InSTdXts0TO4qPg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehgedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Jun 2021 06:12:07 -0400 (EDT) Date: Mon, 28 Jun 2021 12:12:05 +0200 From: Maxime Ripard To: Laurent Pinchart Cc: Jonathan Liu , Jagan Teki , Andrzej Hajda , Neil Armstrong , Sandy Huang , Heiko Stubner , Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , Jernej Skrabec , Jonas Karlman , Sam Ravnborg , linux-kernel , dri-devel , linux-amarula Subject: Re: [PATCH] drm/bridge: dw-mipi-dsi: Move drm_bridge_add into probe Message-ID: <20210628101205.bul2iwwljxtd24tb@gilmour> References: <20210203091306.140518-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pxsrq5bk7iavnx3y" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pxsrq5bk7iavnx3y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jun 24, 2021 at 03:51:05PM +0300, Laurent Pinchart wrote: > CC'ing Maxime Ripard. >=20 > Maxime, is this similar to the issue we've recently discussed with the > VC4 DSI encoder ? >=20 > On Thu, Jun 24, 2021 at 10:39:48PM +1000, Jonathan Liu wrote: > > On Thu, 24 Jun 2021 at 22:34, Jagan Teki wrote: > > > On Fri, Jun 18, 2021 at 6:40 PM Jonathan Liu wrote: > > > > On Wed, 3 Feb 2021 at 09:13, Jagan Teki wrote: > > > > > @@ -1167,6 +1151,20 @@ __dw_mipi_dsi_probe(struct platform_device= *pdev, > > > > > dw_mipi_dsi_debugfs_init(dsi); > > > > > pm_runtime_enable(dev); > > > > > > > > > > + ret =3D drm_of_find_panel_or_bridge(dev->of_node, 1, 0, > > > > > + &panel, &bridge); > > > > > + if (ret) > > > > > + return ERR_PTR(ret); > > > > > > > > On RK3399 if the error is EPROBE_DEFER, __dw_mipi_dsi_probe can be > > > > called again and result in the following errors: > > > > [ 0.717589] debugfs: Directory 'ff960000.mipi' with parent '/' a= lready present! > > > > [ 0.717601] dw-mipi-dsi-rockchip ff960000.mipi: failed to create= debugfs root > > > > [ 0.717606] dw-mipi-dsi-rockchip ff960000.mipi: Unbalanced pm_ru= ntime_enable! > > > > > > Is this when you test bridge on rk3399 or panel? > >=20 > > MIPI-DSI to LVDS bridge. It looks more like a driver that doesn't free its resources properly on EPR= OBE_DEFER? Maxime --pxsrq5bk7iavnx3y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYNmgdQAKCRDj7w1vZxhR xR8DAP94cJXuHL0Y5IP7BYZbO+0AfSWavVR1bJBD81CtyTet5AEAzxOwqJgZ0od3 0W8wv1CYlqMx3P/bxlmTi9qwOAuJIwU= =kLbL -----END PGP SIGNATURE----- --pxsrq5bk7iavnx3y--