From: Ben Hutchings <bhutchings@solarflare.com>
To: "Figo.zhang" <figo1802@gmail.com>, zeal <zealcook@gmail.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH 2/2] ks8695net: Use default implementation of ethtool_ops::get_link
Date: Thu, 13 Jan 2011 17:52:51 +0000 [thread overview]
Message-ID: <1294941171.3946.49.camel@bwh-desktop> (raw)
In-Reply-To: <1294941014.3946.46.camel@bwh-desktop>
This is completely untested as I don't have an ARM build environment.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
I'm fairly confident that this is right for the WAN mode. It depends on
the previous patch.
Ben.
drivers/net/arm/ks8695net.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c
index 8820fcd..62d6f88 100644
--- a/drivers/net/arm/ks8695net.c
+++ b/drivers/net/arm/ks8695net.c
@@ -994,20 +994,6 @@ ks8695_wan_nwayreset(struct net_device *ndev)
}
/**
- * ks8695_wan_get_link - Retrieve link status of network interface
- * @ndev: The network interface to retrive the link status of.
- */
-static u32
-ks8695_wan_get_link(struct net_device *ndev)
-{
- struct ks8695_priv *ksp = netdev_priv(ndev);
- u32 ctrl;
-
- ctrl = readl(ksp->phyiface_regs + KS8695_WMC);
- return ctrl & WMC_WLS;
-}
-
-/**
* ks8695_wan_get_pause - Retrieve network pause/flow-control
advertising
* @ndev: The device to retrieve settings from
* @param: The structure to fill out with the information
@@ -1058,7 +1044,7 @@ static const struct ethtool_ops
ks8695_wan_ethtool_ops = {
.get_settings = ks8695_wan_get_settings,
.set_settings = ks8695_wan_set_settings,
.nway_reset = ks8695_wan_nwayreset,
- .get_link = ks8695_wan_get_link,
+ .get_link = ethtool_op_get_link,
.get_pauseparam = ks8695_wan_get_pause,
.get_drvinfo = ks8695_get_drvinfo,
};
--
1.7.3.4
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2011-01-13 17:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 17:50 [PATCH 1/2] ks8695net: Disable non-working ethtool operations Ben Hutchings
2011-01-13 17:52 ` Ben Hutchings [this message]
2011-01-14 5:51 ` [PATCH 2/2] ks8695net: Use default implementation of ethtool_ops::get_link David Miller
2011-01-14 5:50 ` [PATCH 1/2] ks8695net: Disable non-working ethtool operations David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294941171.3946.49.camel@bwh-desktop \
--to=bhutchings@solarflare.com \
--cc=figo1802@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=zealcook@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox