diff options
Diffstat (limited to 'sys/dev/ata/ata-pci.c')
-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 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) |