aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2007-11-18 16:04:05 -0500
committerFrancois Romieu <romieu@fr.zoreil.com>2008-04-27 12:13:58 -0400
commitc34ebbae01e3d1f6a5cced6a40dc0ed792590d22 (patch)
tree929cbc082c21bfed4d2fec833e274ea7d9d51544 /drivers
parent47e4781544aaf2916170ef5516786fbb19447600 (diff)
sis190: remove needless MII reset
It does not help the auto-negotiation process to settle. Added a debug message to give some hindsight when things do not work as expected. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sis190.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c
index 0b22e75633a2..20f48296efcb 100644
--- a/drivers/net/sis190.c
+++ b/drivers/net/sis190.c
@@ -899,10 +899,9 @@ static void sis190_phy_task(struct work_struct *work)
899 mod_timer(&tp->timer, jiffies + HZ/10); 899 mod_timer(&tp->timer, jiffies + HZ/10);
900 } else if (!(mdio_read_latched(ioaddr, phy_id, MII_BMSR) & 900 } else if (!(mdio_read_latched(ioaddr, phy_id, MII_BMSR) &
901 BMSR_ANEGCOMPLETE)) { 901 BMSR_ANEGCOMPLETE)) {
902 net_link(tp, KERN_WARNING "%s: PHY reset until link up.\n",
903 dev->name);
904 netif_carrier_off(dev); 902 netif_carrier_off(dev);
905 mdio_write(ioaddr, phy_id, MII_BMCR, val | BMCR_RESET); 903 net_link(tp, KERN_WARNING "%s: auto-negotiating...\n",
904 dev->name);
906 mod_timer(&tp->timer, jiffies + SIS190_PHY_TIMEOUT); 905 mod_timer(&tp->timer, jiffies + SIS190_PHY_TIMEOUT);
907 } else { 906 } else {
908 /* Rejoice ! */ 907 /* Rejoice ! */