Commit 01bdc033 authored by Denis Vlasenko's avatar Denis Vlasenko Committed by Linus Torvalds

[PATCH] silence cs89x0

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.

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b1581566
...@@ -417,6 +417,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) ...@@ -417,6 +417,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
struct net_local *lp = netdev_priv(dev); struct net_local *lp = netdev_priv(dev);
static unsigned version_printed; static unsigned version_printed;
int i; int i;
int tmp;
unsigned rev_type = 0; unsigned rev_type = 0;
int eeprom_buff[CHKSUM_LEN]; int eeprom_buff[CHKSUM_LEN];
int retval; int retval;
...@@ -492,14 +493,17 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) ...@@ -492,14 +493,17 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
goto out2; 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; ioaddr &= ~3;
outw(PP_ChipID, ioaddr + ADD_PORT); outw(PP_ChipID, ioaddr + ADD_PORT);
if (inw(ioaddr + DATA_PORT) != CHIP_EISA_ID_SIG) { tmp = inw(ioaddr + DATA_PORT);
printk(KERN_ERR "%s: incorrect signature 0x%x\n", if (tmp != CHIP_EISA_ID_SIG) {
dev->name, inw(ioaddr + DATA_PORT)); printk(KERN_DEBUG "%s: incorrect signature at %x: 0x%x!="
CHIP_EISA_ID_SIG_STR "\n",
dev->name, ioaddr + DATA_PORT, tmp);
retval = -ENODEV; retval = -ENODEV;
goto out2; goto out2;
} }
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
#endif #endif
#define CHIP_EISA_ID_SIG 0x630E /* Product ID Code for Crystal Chip (CS8900 spec 4.3) */ #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 #ifdef IBMEIPKT
#define EISA_ID_SIG 0x4D24 /* IBM */ #define EISA_ID_SIG 0x4D24 /* IBM */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment