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=1796468929; b=YRVGl+perPNFYD9Hg4U7mx0lFRelLBXL0zqgQAfucqNlmxJ9hpazOPrvos/s4v2tTADC ldmAw+o41MoZxEY63+pPJPE62sPW6hNmEuAX0ItvKUlUabZQLgs1nWKwOI3cgh3Gjaz4L gdVyEDZbpXRFpl+k7/bSIFThiifFjHnFqzXacIZ+vPvvWpuvxuSB0lFivfOkLuLeBKdcf KO63BQS6dpLLpAQD9tQD1QslXjOAwxWdzVn4qkyxGXXT91KSfbnUDrewP5dE7bJYiET9m SwtE6FZ7hoKTUPtLD/ISiBJoFhPpvwSL6amM9Td5bFb2/gPSlHNw7jw8dVJrbtO6IyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796468929; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=PSSBmdGte4nBk+m8Dh2sV7JjWHR9IpEznQ/3/mHAIT8=; b=BP2RJdYqUdZ/JXXldSlpXGRU5Vt42Eeu2A0cjaIzz+W0p9tXYpH2lJY8yEIDejvkAdNy 6gwNR0+VDWdmFnnkMIsXK1TSeB91z860Q7rDBSdlTt+J3cE9CEAYbguyt1MvKSEQg/LiO z9x8RRSYjXBmJaC/+LSjkObTDR0bTRLiKGGCo7ohsi99S8sKsVw30FILpDHAztAbz+MVa Bnlz5Sx65wISBvaD0StnCV6rDi5mSX2iHjlTWJMKcoysaraFAz4JhjoSUFO9euIysT3gB ub6hBsxlfaBo0cZDAN16kT/Hiv5mRdwPDH5AzAkjXT1d1g6PEjkRMxq5tFdzDoxl7AA== 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=Cssyx8eL; 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 900D7606A322 for ; Sat, 5 Dec 2026 11:08:49 +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=Cssyx8eL Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFB501F00936; Sat, 5 Dec 2026 11:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796468929; bh=PSSBmdGte4nBk+m8Dh2sV7JjWHR9IpEznQ/3/mHAIT8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Cssyx8eL+fDv28yeY3XLWRgCPBnUKAVgrQX2nKvVvAixp8rp6rzyqWZ/Gc4CGbbVR gpIJCEkfmoy1wi5n5ltaF76cJrtFz1n5ez116RYWteCtoqOXu4wVD0SQWuE2POYru7 5ffmxmhEjZF4DVnoXF0YD1tRSkBKdeS1ctPKwrs7+sj6dnXOR+JKOlcwYeACLyLnLL CG2mviu/R23Orqyu3hBOmmHr7n5lETfigTpXFWe3wV/0j0kIarQb/4dqavFKrSb+fn T+XHOrs9ztI7vkUz3wuCDJ48gGL5xLWN90IrIHq0DGonozikw05z58r7ic7xR607dC lIpGOFDdh//LQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next 03/12] net: phy: Don't create the sysfs links for PHYs behind a mux Reply-To: sashiko-reviews@lists.linux.dev To: "Maxime Chevallier" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204110622.1106492-4-maxime.chevallier@bootlin.com> References: <20261204110622.1106492-1-maxime.chevallier@bootlin.com> <20261204110622.1106492-4-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 11:08:47 +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: - [Low] net: phy: skipping phy_sysfs_create_links() drops per-PHY attached_dev link -- commit a16b08e2d216e5687da38893c4bd94d7b180213f Author: Maxime Chevallier net: phy: Don't create the sysfs links for PHYs behind a mux This commit adds a mux_port pointer to struct phy_device and skips calling phy_sysfs_create_links() in phy_attach_direct() when phydev->mux_port is se= t. > diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c > index 60440b62e6c79..9630578a6a5c5 100644 > --- a/drivers/net/phy/phy_device.c > +++ b/drivers/net/phy/phy_device.c > @@ -2019,7 +2019,8 @@ int phy_attach_direct(struct net_device *dev, struc= t phy_device *phydev, > */ > phydev->sysfs_links =3D false; > =20 > - phy_sysfs_create_links(phydev); > + if (!phydev->mux_port) > + phy_sysfs_create_links(phydev); > =20 > if (!phydev->attached_dev) { > err =3D sysfs_create_file(&phydev->mdio.dev.kobj, [Severity: Low] Should muxed PHYs still create the per-PHY attached_dev symlink? phy_sysfs_create_links() creates two symlinks: attached_dev under phydev->mdio.dev.kobj and phydev under dev->dev.kobj. Only the netdev-side phydev link collides across multiple PHYs (failing with -EEXIST rather than overwriting), whereas each PHY has its own kobject for attached_dev. Skipping phy_sysfs_create_links() entirely while phydev->attached_dev is still set leaves muxed PHYs with neither attached_dev nor phy_standalone in sysfs, despite Documentation/ABI/testing/sysfs-class-net-phydev documenting attached_dev for attached PHYs. If omitting attached_dev is intentional, the commit message and ABI doc should note that; otherwise, only the netdev-side phydev link needs to be skipped (with phy_detach_internal() updated to match). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204110622.1106= 492-1-maxime.chevallier@bootlin.com?part=3D3