1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[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
This commit is contained in:
juhosg
2008-10-31 11:50:47 +00:00
parent 6f9f98ff4f
commit 26879160c0
3 changed files with 16 additions and 1 deletions

View File

@@ -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);