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=1796156747; b=ebNT2sXbXNXfyncuXHgTPFDYPkjavIQJo0g8UdiQ9ilXYDhDa/v3liifj4NyDOTUIhTd HfH3gBKDttZiqBWx3wNr7oedjHklMiQhWdKlZAxwZgwftPCcpxliJKIDv3zvJgDEvtNah /QzNWn+W1KZFrmcviW3VB/laILwS2PUuGyvPMs80HazWhiQOhx73tLB5ErBPI1ynJDRbl V/7RON9PcKEAQ8xKjgI7T1Wx+en3kEiHAYmCOJghD2CJy24yBOnxOprDwlJKpJPUFSpEs 1vWPun+mmbo1uXe1E/mrN3wh1sYMmsCSsSHrO/NgiSAernCpRxrW9Jm9uYWgU1Au8mA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796156747; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=UXkIjU+myqxnbmd4zAm8+kP4oN7MZfMRl1XcvOPSPnk=; b=W4D3r49cLEAEUmLCJElY6KJArD9HG9MHyMARi31gxvlbSdM2EPi+oW23+spS9zD5e1P6 1y9ZKhGVSvOaaK08l9mr7hXNxu2hzERm/CZO60ri7NYo26Ike2qy6PwZZkFPgxUIGdzaV 2v/uXNAQ0bP+PeANyKTqKELAYOMNdES7kJMzidcYzpi7EtEWveIghgYYYmWl/xV4MOoe+ f3wYwRtDUVKHJxB/84G75HMUWjUUaA39lbeipfOoG88nVGRlDn8XtydV8/YAlGJnUQfOo FJZcUfdcbJwbJ0SefvqTqzRa+wLO4gCJV1NUw89/gj0OufNxALH52TVPDLAnFQAWCxg== 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=JKSw2RKb; 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 D7756606A31A for ; Tue, 1 Dec 2026 20:25:47 +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=JKSw2RKb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 375DC1F00893; Tue, 1 Dec 2026 20:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796156747; bh=UXkIjU+myqxnbmd4zAm8+kP4oN7MZfMRl1XcvOPSPnk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JKSw2RKbi72ZTjEbWo83RfnAWLrSKtaTI1TRGk/8DRsjZFyyVpV4Z9Foh7MYMudBS ifZzYrOsqRQ+kUKgMUy87JmDVhB84M4kWpL8pDKPS3sb9+Uep/drVpjy6gmOwuws3a 1ymOQ2LYP0ZQGVkJnMdtrPdthnR9EoxbA/XGnhcztDQXvptZxz95Eng3hqkRAOrWKk fxqJaRLFGfzwkKDaso6h73P+/jsHK6JcauE7gsfpkqZfQ0t9JstRtEia3+SXI6Lztb Jaieos51VC8a5DKQCEs3fovSR6qOsDhZViKCHyRCTJv0nsd2tapT1dchO9K+gmz97z AL2jSvyd3K4mg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 05/13] phy: amlogic: meson-hdmi-tx: Add GXBB, GXL, GXM and G12A support 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-5-5ccdf57a6cf5@aliel.fr> References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> <20261201-meson-drm-create-hdmitx-phy-v6-5-5ccdf57a6cf5@aliel.fr> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 20:25:46 +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 1 potential issue to consider: - [Medium] phy: amlogic: missing PHY provider registration in meson_hdmi_phy_aux_probe() -- commit 9c83a9c8c670c3d3e57ee4e8af9227943e479a17 Author: Ronald Claveau phy: amlogic: meson-hdmi-tx: Add GXBB, GXL, GXM and G12A support This commit extends the Meson HDMI TX PHY driver to support GXBB, GXL, GXM, and G12A SoCs as auxiliary devices, implementing generic PHY HDMI configuration callbacks and a legacy creation helper. > diff --git a/drivers/phy/amlogic/phy-meson-hdmi-tx.c b/drivers/phy/amlogi= c/phy-meson-hdmi-tx.c > index e4e606ab4eefa..66bf841411fd2 100644 > --- a/drivers/phy/amlogic/phy-meson-hdmi-tx.c > +++ b/drivers/phy/amlogic/phy-meson-hdmi-tx.c [ ... ] > +static int meson_hdmi_phy_aux_probe(struct auxiliary_device *auxdev, > + const struct auxiliary_device_id *id) > +{ > + const struct meson_hdmi_phy_data *data; > + struct device *dev =3D &auxdev->dev; > + struct device_node *parent_np =3D dev->parent->of_node; > + struct regmap *hhi; > + struct phy *phy; > + > + data =3D (const struct meson_hdmi_phy_data *)id->driver_data; > + if (!data) > + return -EINVAL; > + > + hhi =3D syscon_node_to_regmap(parent_np); > + if (IS_ERR(hhi)) > + return dev_err_probe(dev, PTR_ERR(hhi), > + "failed to get HHI regmap\n"); > + > + phy =3D meson_hdmi_phy_alloc(dev, parent_np, hhi, NULL, data); > + if (IS_ERR(phy)) > + return dev_err_probe(dev, PTR_ERR(phy), > + "failed to create PHY\n"); > + > + return 0; > +} [Severity: Medium] Should meson_hdmi_phy_aux_probe() register the OF PHY provider with devm_of_phy_provider_register() after meson_hdmi_phy_alloc(), instead of relying on the parent sysctrl driver registering it 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); ... } Because the provider is already live with of_phy_simple_xlate() before the struct phy exists, any consumer lookup before meson_hdmi_phy_aux_probe() completes (or when this driver is a not-yet-loaded module, defers, or is unbound) gets -ENODEV from of_phy_simple_xlate() instead of -EPROBE_DEFER. In addition, devm_phy_create() inside meson_hdmi_phy_alloc() publishes phy->dev to phy_class before phy_set_drvdata(phy, priv) runs, leaving a window where a concurrent consumer can look up the PHY and invoke phy_ops with a NULL priv pointer. Since auxiliary_device_create() already copies the parent OF node to auxdev->dev.of_node, registering the provider here on dev after meson_hdmi_phy_alloc() (as meson_hdmi_phy_platform_probe() does) avoids both issues and ties the provider lifetime to the auxiliary driver. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-meson-drm-= create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr?part=3D5