patch-2.4.27 linux-2.4.27/drivers/net/tulip/timer.c

Next file: linux-2.4.27/drivers/net/tulip/tulip_core.c
Previous file: linux-2.4.27/drivers/net/tulip/ChangeLog
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/net/tulip/timer.c linux-2.4.27/drivers/net/tulip/timer.c
@@ -211,10 +211,16 @@
 	if (tulip_debug > 1)
 		printk(KERN_DEBUG "%s: Comet link status %4.4x partner capability "
 			   "%4.4x.\n",
-			   dev->name, inl(ioaddr + 0xB8), inl(ioaddr + 0xC8));
+			   dev->name,
+			   tulip_mdio_read(dev, tp->phys[0], 1),
+			   tulip_mdio_read(dev, tp->phys[0], 5));
 	/* mod_timer synchronizes us with potential add_timer calls
 	 * from interrupts.
 	 */
+	if (tulip_check_duplex(dev) < 0)
+		{ netif_carrier_off(dev); }
+	else
+		{ netif_carrier_on(dev); }
 	mod_timer(&tp->timer, RUN_AT(next_tick));
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)