diff options
author | Bence Csókás <csokas.bence@prolan.hu> | 2025-07-28 17:34:55 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-30 19:10:25 -0700 |
commit | 3b98c9352511db627b606477fc7944b2fa53a165 (patch) | |
tree | 53de0874862ad5e020dbe3d72807c7d3668dd94f /scripts/gdb/linux/xarray.py | |
parent | 57ec5a8735dc5dccd1ee68afdb1114956a3fce0d (diff) |
net: mdio_bus: Use devm for getting reset GPIO
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>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions