]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/phy/phy.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[karo-tx-linux.git] / drivers / net / phy / phy.c
index ef9ea924822349217f536ad41d124a791aecd2fb..298b4c201733cb5c0e43490d3cc9b6363d39f534 100644 (file)
@@ -1188,3 +1188,19 @@ int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data)
        return 0;
 }
 EXPORT_SYMBOL(phy_ethtool_set_eee);
+
+int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol)
+{
+       if (phydev->drv->set_wol)
+               return phydev->drv->set_wol(phydev, wol);
+
+       return -EOPNOTSUPP;
+}
+EXPORT_SYMBOL(phy_ethtool_set_wol);
+
+void phy_ethtool_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol)
+{
+       if (phydev->drv->get_wol)
+               phydev->drv->get_wol(phydev, wol);
+}
+EXPORT_SYMBOL(phy_ethtool_get_wol);