aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-10-31 11:50:47 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-10-31 11:50:47 +0000
commit8b47c4566c4dfe13e15cf6d99729c66f51789811 (patch)
treed84f8879810a98bc2fa657ce1158969a70a6f9e3 /target/linux/ar71xx/files/drivers/net
parentea94e359fb1a5040836ab1d286bfb3d7c7f58733 (diff)
downloadupstream-8b47c4566c4dfe13e15cf6d99729c66f51789811.tar.gz
upstream-8b47c4566c4dfe13e15cf6d99729c66f51789811.tar.bz2
upstream-8b47c4566c4dfe13e15cf6d99729c66f51789811.zip
[ar71xx] setup speed/duplex on RB-433/450 (closes #4151)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13087 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h2
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index 2f60d19b5f..5cd7dc2c5c 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -37,7 +37,7 @@
#define ETH_FCS_LEN 4
#define AG71XX_DRV_NAME "ag71xx"
-#define AG71XX_DRV_VERSION "0.4.2"
+#define AG71XX_DRV_VERSION "0.4.3"
#define AG71XX_NAPI_TX 1
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
index 512b42eb5c..e44bea4f1e 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
@@ -276,6 +276,17 @@ int ag71xx_phy_connect(struct ag71xx *ag)
break;
default:
+ switch (pdata->speed) {
+ case SPEED_10:
+ case SPEED_100:
+ case SPEED_1000:
+ break;
+ default:
+ printk(KERN_ERR "%s: invalid speed specified\n",
+ dev->name);
+ return -EINVAL;
+ }
+
ag->phy_dev = NULL;
printk(KERN_DEBUG "%s: connected to %d PHYs\n",
dev->name, phy_count);