From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796157044; b=OiSHYR2nxjqyLu/pH76oM1989hYLSOoFdVvAkQ9zzZ9wrgLrg+yqyM2QfeShhPp22Wqj C6cp2YL+HpxjqAKx1QtCg5N4510eA6pjsER2gpq7w7DDvWR8umgKpC0gQCAZJe/rX7069 4r9284gA664yj9A/lAK61ntF2c0559JeM8NomYUWDteuXhimIEiYjmh3PVAgoqG5GF1R2 45BxI0tqOA/m05h4XLAq52AIQPBZbBBe4OST7VOe7v6OWsRDRiMDHAp1OF+luTZb5C7X6 cTUX16VSLDjQnKAnV2Dw/UJXowZTM6pGSlI/2CXqpVWMVaiuRA4yMsgQGKpkQkw4v3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796157044; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IGt6eHwjfgrSaxHYxA5cGlHEf4NEuHE1WAqkeOqXt38=; b=OIqOYS2ldSWEAdlmIwkxgbHgkm78dNy7yRECrbe9eBP2HDGhb+2rC20rvY6oXFCqGHHf yZq31ndRpUpPmV50H89XZwV68X68zSfui2EXnhvRxj6eoTXRT/607z6ByQ8ByrK2OoGzk xIpdAxGxI825ivhj7+c7OAcRCK4VJlJJm6Cm7hX8veOgFwyViK0p2h1/ng2UMs509xk03 OmVOQwsl1D1pmKGx46iuHBQC+SIVIA/mo5Nud3Kgt5jCM+K0Qow4Ty2iUijo7ApodVJXK bC67VK7dLDaLY4vRsRT6hf4wJ8gtppw9DqghIOUsbyowCl2JsiG3CCHW59dRiOT4hOA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="i+uHv5/E"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A05BE606A320 for ; Tue, 1 Dec 2026 20:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i+uHv5/E Received: by smtp.kernel.org (Postfix) with ESMTPSA id 673771F00899; Tue, 1 Dec 2026 20:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796157043; bh=IGt6eHwjfgrSaxHYxA5cGlHEf4NEuHE1WAqkeOqXt38=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=i+uHv5/EHKhk2baQ8cqLsTnoWts+KekzprmWNiA/bbqGHSR+fnaNDJ/uopiSDLACa WQupo8auki9NdzA0ZdB6FBeByFvlh7j84Az3JJtN+hTmld5qhtUuhJj2puHbuVCwEe xESVdIFAcxml6Nf8JrtgHTydzWSmEs7KAd3wWqQHPzCoU75Z/xzFNHff0NqA2Jh74a u4A3n2pcLM7iuKTopUPQ+9GepafJbOX+m2u6GNxYnBBoFIvFn7ySTWs6tJthE/Ggwb dX8b5NYk4wpyouIyXE706uNfVVv7gN8jQnTvfC5J8rfHha31DAdMpsHE+EBEmTt56t f+o0LzIg4ovog== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 09/13] drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY Reply-To: sashiko-reviews@lists.linux.dev To: "Ronald Claveau" Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org, vkoul@kernel.org, olteanv@gmail.com In-Reply-To: <20261201-meson-drm-create-hdmitx-phy-v6-9-5ccdf57a6cf5@aliel.fr> References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> <20261201-meson-drm-create-hdmitx-phy-v6-9-5ccdf57a6cf5@aliel.fr> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 20:30:42 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] drm/meson: dw-hdmi: devm_phy_optional_get() masks unbound aux PHY as legacy - [Low] drm/meson: dw-hdmi: unmet COMMON_CLK dependency for PHY_MESON_HDMI_TX -- commit 4a5d79bfd8030c336301e39697e95c82dc0bc195 Author: Ronald Claveau drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY This commit converts the Meson DW-HDMI driver to manage the HDMI TX PHY through the generic PHY framework, with a legacy fallback for device trees without a phys property, and adjusts suspend/resume ordering. > diff --git a/drivers/gpu/drm/meson/Kconfig b/drivers/gpu/drm/meson/Kconfig > index 6645665f60380..a91cf851314a6 100644 > --- a/drivers/gpu/drm/meson/Kconfig > +++ b/drivers/gpu/drm/meson/Kconfig > @@ -20,6 +20,7 @@ config DRM_MESON_DW_HDMI > depends on PM > default y if DRM_MESON > select DRM_DW_HDMI > + select PHY_MESON_HDMI_TX > imply DRM_DW_HDMI_I2S_AUDIO [Severity: Low] Can selecting PHY_MESON_HDMI_TX here cause an unmet direct dependency warning on COMMON_CLK? drivers/phy/amlogic/Kconfig: config PHY_MESON_HDMI_TX tristate "Meson HDMI TX PHY driver" depends on ARCH_MESON || COMPILE_TEST depends on OF && COMMON_CLK Neither DRM_MESON nor DRM_MESON_DW_HDMI depends on COMMON_CLK, so a COMPILE_TEST=3Dy build with COMMON_CLK=3Dn and DRM_MESON_DW_HDMI enabled selects PHY_MESON_HDMI_TX without its COMMON_CLK dependency satisfied. > diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meso= n/meson_dw_hdmi.c > index 20a821936b3af..ec21d13775b70 100644 > --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c > +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c [ ... ] > @@ -746,7 +663,26 @@ static int meson_dw_hdmi_bind(struct device *dev, st= ruct device *master, > return ret; > } > =20 > - meson_dw_hdmi_init(meson_dw_hdmi); > + meson_dw_hdmi->phy =3D devm_phy_optional_get(dev, NULL); > + if (IS_ERR(meson_dw_hdmi->phy)) > + return dev_err_probe(dev, PTR_ERR(meson_dw_hdmi->phy), > + "failed to get HDMI PHY\n"); > + > + if (!meson_dw_hdmi->phy) { > + /* DEPRECATED: DT without "phys" */ > + dev_warn(dev, "missing \"phys\", using legacy HDMI PHY\n"); > + meson_dw_hdmi->phy =3D meson_hdmi_phy_create_legacy(dev, priv->hhi, > + meson_dw_hdmi->data->phy_soc); > + if (IS_ERR(meson_dw_hdmi->phy)) > + return dev_err_probe(dev, PTR_ERR(meson_dw_hdmi->phy), > + "failed to create legacy HDMI PHY\n"); > + > + meson_dw_hdmi->legacy_phy =3D true; > + } [Severity: Medium] Can devm_phy_optional_get() return NULL even when the DT has a "phys" property, causing meson_dw_hdmi_bind() to fall back to meson_hdmi_phy_create_legacy() instead of deferring probe? meson_gx_hhi_sysctrl_probe() registers the OF PHY provider with of_phy_simple_xlate before creating the auxiliary device: drivers/soc/amlogic/meson-gx-hhi-sysctrl.c:meson_gx_hhi_sysctrl_probe() { ... phy_provider =3D devm_of_phy_provider_register(dev, of_phy_simple_xlate); if (IS_ERR(phy_provider)) return dev_err_probe(dev, PTR_ERR(phy_provider), "failed to register PHY provider\n"); auxdev =3D devm_auxiliary_device_create(dev, phy_aux_name, NULL); ... } If meson_dw_hdmi_bind() runs after the provider is registered on the HHI node but before meson_hdmi_phy_aux_driver binds to the auxiliary device and creates the struct phy (for example when phy-meson-hdmi-tx is a module or with asynchronous probing), of_phy_provider_lookup() succeeds and calls of_phy_simple_xlate(), which returns -ENODEV because no device in phy_class matches args->np yet. devm_phy_optional_get() turns that -ENODEV into NULL, so meson_dw_hdmi_bind() logs a false missing "phys" warning and creates a duplicate legacy PHY on the same HHI registers without a device link to the auxiliary PHY device. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-meson-drm-= create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr?part=3D9