Commit b58879c0 authored by James Bottomley's avatar James Bottomley

Fix SCSI ID setting for HP Cirrus-II card

parent 39ee5201
...@@ -294,12 +294,17 @@ sim710_eisa_probe(struct device *dev) ...@@ -294,12 +294,17 @@ sim710_eisa_probe(struct device *dev)
unsigned char irq, differential = 0, scsi_id = 7; unsigned char irq, differential = 0, scsi_id = 7;
if(strcmp(edev->id.sig, "HWP0C80") == 0) { if(strcmp(edev->id.sig, "HWP0C80") == 0) {
__u8 val;
eisa_irqs = eisa_hwp_irqs; eisa_irqs = eisa_hwp_irqs;
irq_index = (inb(io_addr + 0xc85) & 0x7) - 1; irq_index = (inb(io_addr + 0xc85) & 0x7) - 1;
#if 0
/* this doesn't seem to work at the moment */ val = inb(io_addr + 0x4);
scsi_id = ffs(inb(io_addr + 0x4)); scsi_id = ffs(val) - 1;
#endif
if(scsi_id > 7 || (val & ~(1<<scsi_id)) != 0) {
printk(KERN_ERR "sim710.c, EISA card %s has incorrect scsi_id, setting to 7\n", dev->name);
scsi_id = 7;
}
} else { } else {
eisa_irqs = eisa_cpq_irqs; eisa_irqs = eisa_cpq_irqs;
irq_index = inb(io_addr + 0xc88) & 0x07; irq_index = inb(io_addr + 0xc88) & 0x07;
......
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