Thread (5 messages) flat view 5 messages, 4 authors, 2025-06-21

Re: [PATCH net-next RFC] net: Throw ASSERT_RTNL into phy_detach

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-06-21 08:01:54
Also in: linux-renesas-soc, linux-usb, lkml

+/**
+ * phy_disconnect_rtnl - disable interrupts, stop state machine, and detach a PHY
+ *		    device
+ * @phydev: target phy_device struct
+ *
+ * This is a wrapper around phy_disconnect that takes the rtnl semaphore.
+ */
Developers are likely to get this wrong, because generally they don't
need to bother with RTNL, the core does it. Could you add some
guidance here when this should be used, and when not.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help