summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorhayeswang <hayeswang@realtek.com>2014-02-18 21:49:11 +0800
committerDavid S. Miller <davem@davemloft.net>2014-02-18 16:40:02 -0500
commita5ec27c1509b1dd2918aff8e6804056984fbf598 (patch)
treee0297a4f8f0687fe199cc3a9d32bd35a40178090 /drivers/net/usb
parenta634782f6cff8cb321a1b118b1085a234f5a21ed (diff)
downloadblackbird-op-linux-a5ec27c1509b1dd2918aff8e6804056984fbf598.tar.gz
blackbird-op-linux-a5ec27c1509b1dd2918aff8e6804056984fbf598.zip
r8152: support get_msglevel and set_msglevel
Support get_msglevel and set_msglevel. Signed-off-by: Hayes Wang <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/r8152.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index db988428cefc..0654bd3c4591 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -2852,6 +2852,20 @@ out_set_wol:
return ret;
}
+static u32 rtl8152_get_msglevel(struct net_device *dev)
+{
+ struct r8152 *tp = netdev_priv(dev);
+
+ return tp->msg_enable;
+}
+
+static void rtl8152_set_msglevel(struct net_device *dev, u32 value)
+{
+ struct r8152 *tp = netdev_priv(dev);
+
+ tp->msg_enable = value;
+}
+
static void rtl8152_get_drvinfo(struct net_device *netdev,
struct ethtool_drvinfo *info)
{
@@ -2895,6 +2909,8 @@ static struct ethtool_ops ops = {
.get_settings = rtl8152_get_settings,
.set_settings = rtl8152_set_settings,
.get_link = ethtool_op_get_link,
+ .get_msglevel = rtl8152_get_msglevel,
+ .set_msglevel = rtl8152_set_msglevel,
.get_wol = rtl8152_get_wol,
.set_wol = rtl8152_set_wol,
};
OpenPOWER on IntegriCloud