linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda@ilport.com.ua>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] silence cs89x0
Date: Fri, 17 Jun 2005 08:26:46 +0300	[thread overview]
Message-ID: <200506170826.46415.vda@ilport.com.ua> (raw)

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

Hi Jeff,

cs89x0 talks a lot at boot. Seems like debug leftover.
This patch downgrades printks to KERN_DEBUG.
While we're at it, make these messages a bit less obscure.
--
vda

[-- Attachment #2: cs89x0.c.diff --]
[-- Type: text/x-diff, Size: 2097 bytes --]

cs89x0:cs89x0_probe(0x0)
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
PP_addr=0xffff
eth1: incorrect signature 0xffff
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP


--- linux-2.6.12-rc5.src/drivers/net/cs89x0.h.orig	Tue Oct 19 00:54:39 2004
+++ linux-2.6.12-rc5.src/drivers/net/cs89x0.h	Fri Jun 17 01:04:53 2005
@@ -93,6 +93,7 @@
 #endif
 
 #define CHIP_EISA_ID_SIG 0x630E   /*  Product ID Code for Crystal Chip (CS8900 spec 4.3) */
+#define CHIP_EISA_ID_SIG_STR "0x630E"
 
 #ifdef IBMEIPKT
 #define EISA_ID_SIG 0x4D24	/*  IBM */
--- linux-2.6.12-rc5.src/drivers/net/cs89x0.c.orig	Tue May 31 16:18:35 2005
+++ linux-2.6.12-rc5.src/drivers/net/cs89x0.c	Fri Jun 17 01:06:04 2005
@@ -416,6 +416,7 @@ cs89x0_probe1(struct net_device *dev, in
 	struct net_local *lp = netdev_priv(dev);
 	static unsigned version_printed;
 	int i;
+	int tmp;
 	unsigned rev_type = 0;
 	int eeprom_buff[CHKSUM_LEN];
 	int retval;
@@ -467,14 +468,17 @@ cs89x0_probe1(struct net_device *dev, in
 				goto out2;
 			}
 	}
-printk("PP_addr=0x%x\n", inw(ioaddr + ADD_PORT));
+	printk(KERN_DEBUG "PP_addr at %x: 0x%x\n",
+			ioaddr + ADD_PORT, inw(ioaddr + ADD_PORT));
 
 	ioaddr &= ~3;
 	outw(PP_ChipID, ioaddr + ADD_PORT);
 
-	if (inw(ioaddr + DATA_PORT) != CHIP_EISA_ID_SIG) {
-		printk(KERN_ERR "%s: incorrect signature 0x%x\n",
-			dev->name, inw(ioaddr + DATA_PORT));
+	tmp = inw(ioaddr + DATA_PORT);
+	if (tmp != CHIP_EISA_ID_SIG) {
+		printk(KERN_DEBUG "%s: incorrect signature at %x: 0x%x!="
+			CHIP_EISA_ID_SIG_STR "\n",
+			dev->name, ioaddr + DATA_PORT, tmp);
   		retval = -ENODEV;
   		goto out2;
 	}

                 reply	other threads:[~2005-06-17  5:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506170826.46415.vda@ilport.com.ua \
    --to=vda@ilport.com.ua \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).