Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1677048pxj; Wed, 19 May 2021 11:14:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp0YcI9UDzxztxH80ZXfazsb85j6eXYeYdJwB8d3ceIgh1KPgT6FB7LfrIKVNQKd6t8SSa X-Received: by 2002:a05:6602:18:: with SMTP id b24mr776822ioa.1.1621448050203; Wed, 19 May 2021 11:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448050; cv=none; d=google.com; s=arc-20160816; b=evS+II1S9r5vA+nd4UdnwJwPAGttNh6FNCbmJ/Ht3EWhknJOuAk3VyNzdHBz09TLcL A/0Q+J5bt8X0Ky2lwtRzXx1TxfMaKEdZOGAxosMNW9HPxhLNpQfGp0XXgbVN9mZ3VkWT O+iYslY8qg/d20ZCcxtzC5WGAitBHkGMj7gOFrIqowD0Y2PrRG3wkPye2mxK72NERA+V sx3LGr3p9uLG8Kgi+WO4uieNvCII4vJn0AkbQgBCoYRxoJNho4ewGK+bD1CgqK4PWJz3 Qc87gIDDbQJtfj1W+jDwLyxg6ZhQe36HL0ScdtWwc7+ddqarXzq8E21u8UYaACpWpJbQ cG7w== 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=Rvos89H/LpzyMgRIfAPzAZw+JU0ysxeDmbT0To2qb2g=; b=TUiFyOZS+LZ0Mn5XZJu3N5G5oxYkkGyj+d5aIyULTfCUzBHKO56wmS3Fx85cQHpRyz 5dHggoOGGUBKO/tG8LeoaPR1yJ6eYFcAO7ymKGHTi8VkqyLDWsVELnsdQjhI//S+NViR kjZN/uFDGkQttBIwaMLCBKWG9azmXwComcaYjf+YTJ1hIt5kbSeI/piqFgn1JLBe/8zy fqkmVr8U44YEiJ/EUNOdvxO+mPewJJfpD3zFnWB7jemqQvUCj0NKX5Kl4iyGrC0LBgBF U2YLPJJBfUiSUlZomg9KEVrXczN39C6MpGDt3KKMIdF6hG2YaAeX+jKPjYF+CTQ7ev6F glWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=CpxYW2jB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Ex0vCopC; 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 l11si26666jaj.50.2021.05.19.11.13.58; Wed, 19 May 2021 11:14:10 -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=fm2 header.b=CpxYW2jB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Ex0vCopC; 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 S1349755AbhEROGE (ORCPT + 99 others); Tue, 18 May 2021 10:06:04 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:47691 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243387AbhEROGD (ORCPT ); Tue, 18 May 2021 10:06:03 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D9C2A5C01F0; Tue, 18 May 2021 10:04:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 18 May 2021 10:04:44 -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=fm2; bh=Rvos89H/LpzyMgRIfAPzAZw+JU0 ysxeDmbT0To2qb2g=; b=CpxYW2jBkjGYK72+79O+NMJn28k9nvkOyuPxt4ABXHM 2gPx/waZjCJj+xA+P0AUWDNOYQmzqMktLPjIKPDdUfx2Z+hmeQl1udfcr4HTZhSB l2wuH+oWpCWJUwS+4TB2brQwUavsNfLOX1eQCMKzcBuHYun+5+M8G2PCcg+3UgEm kaxKg1yT3JRoeryLU4RdDJCGjKxvU4cZm+8CSHPjB/OOfYtSNUshGSZDwa/EzyFm Dp+3kXdCoHVtyyI1wNw4cTxSXxCXQ+MjKuAKzKL+/4C5sUtyUK6Oy+cFeiCb0t6p 8JVENJyqVH1FuX4LnfjgKR9WjnzyF6huh7stT4DrnOg== 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=fm2; bh=Rvos89 H/LpzyMgRIfAPzAZw+JU0ysxeDmbT0To2qb2g=; b=Ex0vCopC0/+Jsu0TC9bAeJ bLTJ15FOYr055yEyQqK7GhsSI10kNVhZRemI5AgkGYypVtDKHvTPmBDkkmIg+UUU vqeHzbL+hOT58UtpJMawk5f12pTZjleZFkYUkI3AWL0I8LimaSkmQoIExxyKaN6g W59j8I2NF3Y11/DF94wsyH2yN++1h1kPF/KH0QYFSFiL1KvMtLi+KAQ/jZ320rDj gg6mvGCPD5oaYOTZGhJfrbc7KyNiZvN+TBOlP5qWZaFIMvGT0vZJrdSN9EwUoKrv tuFXkGRS32VY/2tfDGhUJ1vVFSulujAaU7PbaKJuUj4feMtGgspVLBOgefdKugGg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeijedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepjedtudekleffteevffduvdekfffffedvtdeuveffgfeffedtleetueelgeef leetnecuffhomhgrihhnpegsohhothhlihhnrdgtohhmnecukfhppeeltddrkeelrdeike drjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 May 2021 10:04:43 -0400 (EDT) Date: Tue, 18 May 2021 16:04:42 +0200 From: Maxime Ripard To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Saravana Kannan , linux-arm-kernel , linux-sunxi@lists.linux.dev, wens@csie.org, jernej.skrabec@gmail.com, Greg Kroah-Hartman , "Rafael J. Wysocki" , LKML , andre.przywara@arm.com Subject: Re: fw_devlink=on and sunxi HDMI Message-ID: <20210518140442.4hb6og6qh5htublo@gilmour> References: <20210516170539.2yxe43qwezonuo3r@core> <20210517082957.sddwy2dv5esbzmo4@core> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fdh4hwf2hzbvoi6g" Content-Disposition: inline In-Reply-To: <20210517082957.sddwy2dv5esbzmo4@core> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fdh4hwf2hzbvoi6g Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 17, 2021 at 10:29:57AM +0200, Ond=C5=99ej Jirman wrote: > On Sun, May 16, 2021 at 11:32:47PM -0700, Saravana Kannan wrote: > > On Sun, May 16, 2021 at 10:05 AM Ond=C5=99ej Jirman wrote: > > > > > > Hello, > > > > > > Linux 5.13-rc1 again has fw_devlink=3Don enabled by default. I've fou= nd that this > > > breaks probing display pipeline and HDMI output on sunxi boards, beca= use of > > > fwnode_link between hdmi and hdmi-phy nodes. > > > > > > HDMI device probe keeps being avoided with these repeated messages in= dmesg: > > > > > > platform 1ee0000.hdmi: probe deferral - supplier 1ef0000.hdmi-phy n= ot ready > > > > > > Both nodes have their own compatible, but are implemented by a single > > > struct device. > > > > > > This looks like a kind of situation that's expected to break fw_devli= nk > > > expectations by my reading of the the e-mails about trying the fw_dev= link=3Don > > > during 5.12 cycle. > > > > > > Is this supposed to be solved by implementing the PHY node as it's own > > > device or by breaking the fwnode_link between the hdmi phy and hdmi n= odes? > > > Seems like second solution would be quicker now that rc1 is out. > >=20 > > Seems like sun8i_hdmi_phy_probe() already does 95% of the work to make > > the PHY a separate driver. Why not just finish it up by really making > > it a separate driver? I'd really prefer doing that because this seems > > unnecessarily messed up. The phy will have a struct device created for > > it already. You are just not probing it. >=20 > Currently it's all just a glue code for dw-hdmi, which is not using a phy > framework and handles both the controller and phy parts. dw-hdmi needs pa= ssing > platform data around > (https://elixir.bootlin.com/linux/latest/source/include/drm/bridge/dw_hdm= i.h#L115) > to get a specific set of phy glue callbacks hooked into platform data of = dw-hdmi > prior to calling dw_hdmi_probe. >=20 > Looking at other users of dw_hdmi_probe this is the only one that has this > unfortunate issue due to using phys binding internally as a part of one d= evice. >=20 > Just making it a platform driver will also change the probe order of phy = and the > controller, which I've heard from Jernej needs to have the current order = of > (controller and then phy) perserved, for some reason, and will make things > still a bit more convoluted. >=20 > So this looks like needs quite a bit of thought. Yep, and even if it was simple (which it really isn't), it wouldn't be -rc* material. Maxime --fdh4hwf2hzbvoi6g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYKPJegAKCRDj7w1vZxhR xY/sAQCoFYzBDvdB1iFrTeEgkP1/bJEtjBgkBnXBYqumOyP2ugD/TL6HP6UhWXEA 1BAzfJ+mg2XNxf66mlBJSN2Pz/8nBQo= =64N2 -----END PGP SIGNATURE----- --fdh4hwf2hzbvoi6g--