Fix the clockprobe test on the Sil 680

This commit is contained in:
Søren Schmidt 2002-09-16 09:37:26 +00:00
parent 8341a67def
commit 568f03ed88

View File

@ -508,7 +508,7 @@ ata_pci_attach(device_t dev)
break;
case 0x06801095: /* Sil 0680 set ATA reference clock speed */
if (pci_read_config(dev, 0x8a, 1) != 0x10)
if ((pci_read_config(dev, 0x8a, 1) & 0x30) != 0x10)
pci_write_config(dev, 0x8a,
(pci_read_config(dev, 0x8a, 1) & 0x0F) | 0x10, 1);
if ((pci_read_config(dev, 0x8a, 1) & 0x30) != 0x10)