netdev
[Top] [All Lists]

Re: [PATCH 1/1] More ethtool support for sis900

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: Re: [PATCH 1/1] More ethtool support for sis900
From: Daniele Venzano <webvenza@xxxxxxxxx>
Date: Sat, 5 Mar 2005 21:53:37 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <4229FA32.4000401@xxxxxxxxx>
References: <20050305134011.23638.68926@xxxxxxxxxxxxxxxxxxxxx> <4229FA32.4000401@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On 05/mar/05, at 19:28, Jeff Garzik wrote:
+static int sis900_set_settings(struct net_device *net_dev,
+                               struct ethtool_cmd *cmd)
+{
+       struct sis900_private *sis_priv = net_dev->priv;
+       return mii_ethtool_sset(&sis_priv->mii_info, cmd);
+}
+
+static int sis900_nway_reset(struct net_device *net_dev)
+{
+       struct sis900_private *sis_priv = net_dev->priv;
+       return mii_nway_restart(&sis_priv->mii_info);
+}

I should think you want locking for these, as is present in other drivers...
I saw the locking, but I couldn't come up with a reason for it. Is it needed because of kernel wide preemption ? I don't like copying blindly and the documentation for the mii interface is a bit lacking...

Will follow up with a new patch in a few minutes...

--
Daniele Venzano
http://www.brownhat.org


<Prev in Thread] Current Thread [Next in Thread>