diff options
author | John Crispin <john@openwrt.org> | 2015-12-17 09:25:24 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-12-17 09:25:24 +0000 |
commit | 31116661ff8c33f002d457c9945616df01b138c1 (patch) | |
tree | 0735bd55e5bc9b19d991a5cbb59404f0261b4847 /target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch | |
parent | a99c78a09ac39c80e6a4a0b3eb8daca3bbb3806c (diff) | |
download | mtk-20170518-31116661ff8c33f002d457c9945616df01b138c1.zip mtk-20170518-31116661ff8c33f002d457c9945616df01b138c1.tar.gz mtk-20170518-31116661ff8c33f002d457c9945616df01b138c1.tar.bz2 |
ralink: add reworked ethernet driver
update to the version of the driver that is on its way upstream
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 47898
Diffstat (limited to 'target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch')
-rw-r--r-- | target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch b/target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch new file mode 100644 index 0000000..0628364 --- /dev/null +++ b/target/linux/ramips/patches-4.3/0601-net-mediatke-add-phy_ethtool_ioctl-support.patch @@ -0,0 +1,27 @@ +From 3c550ae0359be5bc4d5daa86a62f711a91ac8dde Mon Sep 17 00:00:00 2001 +From: John Crispin <blogic@openwrt.org> +Date: Sun, 13 Dec 2015 17:46:09 +0100 +Subject: [PATCH 2/2] net:mediatke: add phy_ethtool_ioctl() support + +Signed-off-by: John Crispin <blogic@openwrt.org> +--- + drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c +index 9999768..84b1a43 100644 +--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c ++++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c +@@ -1342,6 +1342,9 @@ static int fe_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) + return -ENODEV; + + switch (cmd) { ++ case SIOCETHTOOL: ++ return phy_ethtool_ioctl(priv->phy_dev, ++ (void *) ifr->ifr_data); + case SIOCGMIIPHY: + case SIOCGMIIREG: + case SIOCSMIIREG: +-- +1.7.10.4 + |