Re: [PATCH] [v2] net: qcom/emac: add ethtool support

2017-01-12 Thread Timur Tabi
Timur Tabi wrote: +static void emac_get_pauseparam(struct net_device *netdev, + struct ethtool_pauseparam *pause) +{ + struct phy_device *phydev = netdev->phydev; + + if (phydev) { + if (phydev->autoneg) +

Re: [PATCH] [v2] net: qcom/emac: add ethtool support

2017-01-09 Thread David Miller
From: Timur Tabi Date: Fri, 6 Jan 2017 15:43:01 -0600 > Add support for some ethtool methods: get/set link settings, get/set > message level, get statistics, get link status, get ring params, get > pause params, and restart autonegotiation. > > The code to collect the

[PATCH] [v2] net: qcom/emac: add ethtool support

2017-01-06 Thread Timur Tabi
Add support for some ethtool methods: get/set link settings, get/set message level, get statistics, get link status, get ring params, get pause params, and restart autonegotiation. The code to collect the hardware statistics is moved into its own function so that it can be used by "get