From 568f03ed88cf7ecef0a1ce043206db0338698495 Mon Sep 17 00:00:00 2001 From: Søren Schmidt Date: Mon, 16 Sep 2002 09:37:26 +0000 Subject: Fix the clockprobe test on the Sil 680 --- sys/dev/ata/ata-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 7c590e818480d..0dc8bf5385397 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -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) -- cgit v1.3