public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Keep de2104x quiet
@ 2003-04-04 18:01 Marc Zyngier
  2003-04-04 18:12 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Zyngier @ 2003-04-04 18:01 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel

Jeff,

The included patch tries to keep the de2104x driver quiet if there is
link change. Without this patch, I'm getting lots of :

eth0: link up, media 10baseT-HD
eth0: link up, media 10baseT-HD
eth0: link up, media 10baseT-HD

about one a minute... Quite annoying. With this patch, the driver only
logs when state changes (which is already taken care of in
de_link_up()).

Tested on an AlphaStation-500 (21040, UP).

Thanks,

        M.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1004  -> 1.1005 
#	drivers/net/tulip/de2104x.c	1.15    -> 1.16   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/04/04	maz@hina.wild-wind.fr.eu.org	1.1005
# Keep the de2104x driver quiet if link stays up.
# --------------------------------------------
#
diff -Nru a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
--- a/drivers/net/tulip/de2104x.c	Fri Apr  4 19:56:27 2003
+++ b/drivers/net/tulip/de2104x.c	Fri Apr  4 19:56:27 2003
@@ -984,11 +984,7 @@
 		add_timer(&de->media_timer);
 		if (!netif_carrier_ok(dev))
 			de_link_up(de);
-		else
-			if (netif_msg_timer(de))
-				printk(KERN_INFO "%s: %s link ok, status %x\n",
-				       dev->name, media_name[de->media_type],
-				       status);
+		
 		return;
 	}
 

-- 
Places change, faces change. Life is so very strange.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-04 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-04 18:01 [PATCH] Keep de2104x quiet Marc Zyngier
2003-04-04 18:12 ` Jeff Garzik
2003-04-04 18:40   ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox