mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix UDMA modes setup on CMD chips.
This commit is contained in:
parent
04dbfb5c89
commit
4f57804cd3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111598
@ -1426,7 +1426,7 @@ ata_cmd_setmode(struct ata_device *atadev, int mode)
|
||||
u_int8_t umode = pci_read_config(parent, ureg, 1);
|
||||
|
||||
umode &= ~(atadev->unit == ATA_MASTER ? 0x35 : 0xca);
|
||||
umode |= udmatimings[ATA_DEV(atadev->unit)][mode & ATA_MODE_MASK];
|
||||
umode |= udmatimings[mode & ATA_MODE_MASK][ATA_DEV(atadev->unit)];
|
||||
pci_write_config(parent, ureg, umode, 1);
|
||||
}
|
||||
else if (mode >= ATA_WDMA0) {
|
||||
|
Loading…
Reference in New Issue
Block a user