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 | 77cff176bf07b092893a87235bfbae638a11eb8c (patch) | |
tree | b5d74773d62e3b7e5f63b764ce90b901d78a0fd6 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | |
parent | ad530354e724f7c57a63c0f97b09c5ab1e11e66c (diff) | |
download | mtk-20170518-77cff176bf07b092893a87235bfbae638a11eb8c.zip mtk-20170518-77cff176bf07b092893a87235bfbae638a11eb8c.tar.gz mtk-20170518-77cff176bf07b092893a87235bfbae638a11eb8c.tar.bz2 |
ethernet driver preparation for gigabit support
SVN-Revision: 13340
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 7242868..8728c7c 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; |