Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5566
b: refs/heads/master
c: 01bdc03
h: refs/heads/master
v: v3
  • Loading branch information
Denis Vlasenko authored and Linus Torvalds committed Aug 2, 2005
1 parent d8dcd5c commit 8b813d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1581566183f310abbd2d384a9079d4039faca05
refs/heads/master: 01bdc0336f8f42b32b9be9ace7775329b25202a5
12 changes: 8 additions & 4 deletions trunk/drivers/net/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
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;
Expand Down Expand Up @@ -492,14 +493,17 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
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;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/cs89x0.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8b813d2

Please sign in to comment.