linux-kernelorg-stable/drivers/net
Buday Csaba b9f9035d94 net: mdiobus: release reset_gpio in mdiobus_unregister_device()
commit 8ea25274eb upstream.

reset_gpio is claimed in mdiobus_register_device(), but it is not
released in mdiobus_unregister_device(). It is instead only
released when the whole MDIO bus is unregistered.
When a device uses the reset_gpio property, it becomes impossible
to unregister it and register it again, because the GPIO remains
claimed.
This patch resolves that issue.

Fixes: bafbdd527d ("phylib: Add device reset GPIO support") # see notes
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Cc: Csókás Bence <csokas.bence@prolan.hu>
[ csokas.bence: Resolve rebase conflict and clarify msg ]
Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
Link: https://patch.msgid.link/20250807135449.254254-2-csokas.bence@prolan.hu
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
[ csokas.bence: Use the v1 patch on top of 6.12, as specified in notes ]
Signed-off-by: Bence Csókás <csokas.bence@prolan.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-19 16:35:51 +02:00
..
arcnet
bonding
caif
can can: xilinx_can: xcan_write_frame(): fix use-after-free of transmitted SKB 2025-09-19 16:35:49 +02:00
dsa net: dsa: b53: do not enable EEE on bcm63xx 2025-09-09 18:58:20 +02:00
ethernet i40e: fix IRQ freeing in i40e_vsi_request_irq_msix error path 2025-09-19 16:35:49 +02:00
fddi
fjes
hamradio
hippi
hyperv net: hv_netvsc: fix loss of early receive events from host during channel open. 2025-09-04 15:31:51 +02:00
ieee802154
ipa
ipvlan net: fix NULL pointer dereference in l3mdev_l3_rcv 2025-09-09 18:58:21 +02:00
mctp
mdio
netdevsim
pcs net: pcs: rzn1-miic: Correct MODCTRL register offset 2025-09-09 18:58:19 +02:00
phy net: mdiobus: release reset_gpio in mdiobus_unregister_device() 2025-09-19 16:35:51 +02:00
plip
ppp ppp: fix memory leak in pad_compress_skb 2025-09-09 18:58:14 +02:00
pse-pd
slip
team
thunderbolt
usb Revert "net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups" 2025-09-19 16:35:48 +02:00
vmxnet3
vxlan vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects 2025-09-09 18:58:12 +02:00
wan
wireguard
wireless wifi: ath11k: update channel list in worker when wait flag is set 2025-09-09 18:58:21 +02:00
wwan
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c macsec: read MACSEC_SA_ATTR_PN with nla_get_uint 2025-09-09 18:58:08 +02:00
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c