On Tue, Aug 12, 2025 at 10:22:59PM +0200, Csókás Bence wrote:
Hi,
On 2025. 08. 12. 19:33, Greg Kroah-Hartman wrote:
6.16-stable review patch. If anyone has any objections, please let me know.
From: Bence Csókás csokas.bence@prolan.hu
[ Upstream commit 3b98c9352511db627b606477fc7944b2fa53a165 ]
Commit bafbdd527d56 ("phylib: Add device reset GPIO support") removed devm_gpiod_get_optional() in favor of the non-devres managed fwnode_get_named_gpiod(). When it was kind-of reverted by commit 40ba6a12a548 ("net: mdio: switch to using gpiod_get_optional()"), the devm functionality was not reinstated. Nor was the GPIO unclaimed on device remove. This leads to the GPIO being claimed indefinitely, even when the device and/or the driver gets removed.
Fixes: bafbdd527d56 ("phylib: Add device reset GPIO support") Fixes: 40ba6a12a548 ("net: mdio: switch to using gpiod_get_optional()") Cc: Csaba Buday buday.csaba@prolan.hu Signed-off-by: Bence Csókás csokas.bence@prolan.hu Reviewed-by: Andrew Lunn andrew@lunn.ch Link: https://patch.msgid.link/20250728153455.47190-2-csokas.bence@prolan.hu Signed-off-by: Jakub Kicinski kuba@kernel.org Signed-off-by: Sasha Levin sashal@kernel.org
This was reverted and replaced by: https://git.kernel.org/netdev/net/c/8ea25274ebaf
That's not in Linus's tree yet, so I can't take it :(
So I'll just drop this commit for now, thanks.
greg k-h