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

Re: [PATCH net-next v3 05/14] motorcomm:yt6801: Implement the .ndo_open function

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-02-28 14:32:32
Also in: lkml

+static int fxgmac_open(struct net_device *netdev)
+{
+	struct fxgmac_pdata *priv = netdev_priv(netdev);
+	int ret;
+
+	mutex_lock(&priv->mutex);
What is this mutex protecting? Where it is defined you have:

       struct mutex mutex; /* Driver lock */

which does not help at all. Why is the RTNL lock not sufficient?

	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