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

From: Andrew Lunn
Date: Fri Feb 28 2025 - 09:32:43 EST


> +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