Dont set prefetch etc on VIA chips, causes problems on newer chips and

ATAPI devices.
This commit is contained in:
sos 2004-06-15 11:16:36 +00:00
parent 153630cb88
commit 3ebcca508c
2 changed files with 4 additions and 4 deletions

View File

@ -315,9 +315,10 @@ ata_suspend(device_t dev)
if (!dev || !(ch = device_get_softc(dev)))
return ENXIO;
device_printf(dev, "suspend\n");
ch->locking(ch, ATA_LF_LOCK);
ATA_SLEEPLOCK_CH(ch);
device_printf(dev, "suspend done\n");
return 0;
}
@ -330,10 +331,12 @@ ata_resume(device_t dev)
if (!dev || !(ch = device_get_softc(dev)))
return ENXIO;
device_printf(dev, "resume\n");
ch->locking(ch, ATA_LF_LOCK);
error = ata_reinit(ch);
ch->locking(ch, ATA_LF_UNLOCK);
ata_start(ch);
device_printf(dev, "resume done\n");
return error;
}

View File

@ -2614,9 +2614,6 @@ ata_via_chipinit(device_t dev)
if (ctlr->chip->cfg2 & VIABUG)
ata_via_southbridge_fixup(dev);
/* set prefetch, postwrite */
pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) | 0xf0, 1);
/* set fifo configuration half'n'half */
pci_write_config(dev, 0x43,
(pci_read_config(dev, 0x43, 1) & 0x90) | 0x2a, 1);