summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-09-16 09:37:26 +0000
committersos <sos@FreeBSD.org>2002-09-16 09:37:26 +0000
commit91e41f5a871f9c5b4cb4b7b6065a296e437a2ae6 (patch)
tree156288aa8a7c8a6e79ef5849b03441193307a512 /sys
parent09ef4b104a1f4c58abaa6523a570c8437256086d (diff)
downloadFreeBSD-src-91e41f5a871f9c5b4cb4b7b6065a296e437a2ae6.zip
FreeBSD-src-91e41f5a871f9c5b4cb4b7b6065a296e437a2ae6.tar.gz
Fix the clockprobe test on the Sil 680
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c
index 7c590e8..0dc8bf5 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)
OpenPOWER on IntegriCloud