aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2004-07-17 14:48:46 +0000
committerSøren Schmidt <sos@FreeBSD.org>2004-07-17 14:48:46 +0000
commit4ad91b11e778a60faaca69e267d8b0e08106e15b (patch)
tree9791227633784ae724a99a568c09f3f009d2125b
parent6fd05b64b5b65dd4ba9b86482a0634a5f0b96c29 (diff)
downloadsrc-4ad91b11e778a60faaca69e267d8b0e08106e15b.tar.gz
src-4ad91b11e778a60faaca69e267d8b0e08106e15b.zip
Dont set "address setup timing" on newer VIA chips.
closes PR: 69180
Notes
Notes: svn path=/head/; revision=132291
-rw-r--r--sys/dev/ata/ata-chipset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c
index 859c864f3d3c..cfd2eabf71ac 100644
--- a/sys/dev/ata/ata-chipset.c
+++ b/sys/dev/ata/ata-chipset.c
@@ -2695,7 +2695,8 @@ ata_via_family_setmode(struct ata_device *atadev, int mode)
if (ctlr->chip->cfg2 & NVIDIA)
reg += 0x10;
- pci_write_config(parent, reg - 0x08, timings[ata_mode2idx(mode)], 1);
+ if (ctlr->chip->cfg1 != VIA133)
+ pci_write_config(parent, reg - 0x08, timings[ata_mode2idx(mode)], 1);
error = ata_controlcmd(atadev, ATA_SETFEATURES, ATA_SF_SETXFER, 0, mode);