diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-11-24 16:56:36 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-11-24 16:56:36 +0000 |
commit | 8a6b74261d2fdb3ddda64e0b2aff0414de38ce3d (patch) | |
tree | 938aba64512bc10a5233b0c75e4105e6cc0eeb1f /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | |
parent | 1f683c17c4519886a10235ee3e9625705714558b (diff) | |
download | master-187ad058-8a6b74261d2fdb3ddda64e0b2aff0414de38ce3d.tar.gz master-187ad058-8a6b74261d2fdb3ddda64e0b2aff0414de38ce3d.tar.bz2 master-187ad058-8a6b74261d2fdb3ddda64e0b2aff0414de38ce3d.zip |
[ar71xx] ethernet driver preparation for gigabit support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13340 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | 11 |
1 files changed, 4 insertions, 7 deletions
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 7242868462..8728c7c7b9 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c @@ -255,13 +255,10 @@ int ag71xx_phy_connect(struct ag71xx *ag) } /* mask with MAC supported features */ - phydev->supported &= (SUPPORTED_10baseT_Half - | SUPPORTED_10baseT_Full - | SUPPORTED_100baseT_Half - | SUPPORTED_100baseT_Full - | SUPPORTED_Autoneg - | SUPPORTED_MII - | SUPPORTED_TP); + if (pdata->has_gbit) + phydev->supported &= PHY_GBIT_FEATURES; + else + phydev->supported &= PHY_BASIC_FEATURES; phydev->advertising = phydev->supported; |