diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-11-13 11:26:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-11-13 11:26:59 +0000 |
commit | 538a9493b96682d55cb024eeec237b6cd25be3af (patch) | |
tree | 8335126d23a5488e95ff6a675410aa0c5b38a06d /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | |
parent | 93cd46be133c90531a201eab9dca9c093a47feff (diff) | |
download | master-31e0f0ae-538a9493b96682d55cb024eeec237b6cd25be3af.tar.gz master-31e0f0ae-538a9493b96682d55cb024eeec237b6cd25be3af.tar.bz2 master-31e0f0ae-538a9493b96682d55cb024eeec237b6cd25be3af.zip |
ar71xx: set MII interface speed from the set_speed callbacks
SVN-Revision: 29013
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index 9684b623b3..5740549c2b 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -533,7 +533,6 @@ void ag71xx_link_adjust(struct ag71xx *ag) u32 cfg2; u32 ifctl; u32 fifo5; - u32 mii_speed; if (!ag->link) { ag71xx_hw_stop(ag); @@ -558,17 +557,14 @@ void ag71xx_link_adjust(struct ag71xx *ag) switch (ag->speed) { case SPEED_1000: - mii_speed = MII_CTRL_SPEED_1000; cfg2 |= MAC_CFG2_IF_1000; fifo5 |= FIFO_CFG5_BM; break; case SPEED_100: - mii_speed = MII_CTRL_SPEED_100; cfg2 |= MAC_CFG2_IF_10_100; ifctl |= MAC_IFCTL_SPEED; break; case SPEED_10: - mii_speed = MII_CTRL_SPEED_10; cfg2 |= MAC_CFG2_IF_10_100; break; default: @@ -586,8 +582,6 @@ void ag71xx_link_adjust(struct ag71xx *ag) if (pdata->set_speed) pdata->set_speed(ag->speed); - ag71xx_mii_ctrl_set_speed(ag, mii_speed); - ag71xx_wr(ag, AG71XX_REG_MAC_CFG2, cfg2); ag71xx_wr(ag, AG71XX_REG_FIFO_CFG5, fifo5); ag71xx_wr(ag, AG71XX_REG_MAC_IFCTL, ifctl); |