Only set ATA_CHECKS_CABLE for chip versions that actually support
cable detection, i.e. neither for ALI_OLD nor for ALI_NEW revisions >= 0xc7. MFC after: 1 week
This commit is contained in:
parent
07f5a2c997
commit
74f5b28a4d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200485
@ -180,7 +180,8 @@ ata_ali_ch_attach(device_t dev)
|
||||
if (ata_pci_ch_attach(dev))
|
||||
return ENXIO;
|
||||
|
||||
ch->flags |= ATA_CHECKS_CABLE;
|
||||
if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7)
|
||||
ch->flags |= ATA_CHECKS_CABLE;
|
||||
/* older chips can't do 48bit DMA transfers */
|
||||
if (ctlr->chip->chiprev <= 0xc4)
|
||||
ch->flags |= ATA_NO_48BIT_DMA;
|
||||
|
Loading…
Reference in New Issue
Block a user