diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-09-16 09:37:26 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-09-16 09:37:26 +0000 |
| commit | 568f03ed88cf7ecef0a1ce043206db0338698495 (patch) | |
| tree | 156288aa8a7c8a6e79ef5849b03441193307a512 /sys | |
| parent | 8341a67defbdcfd998753d916ba2bffd345d782e (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/ata/ata-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 7c590e818480..0dc8bf538539 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) |
