mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the bug that prevented DMA from working on old Acer chips.
Found by: Andrew Gallatin <gallatin@cs.duke.edu> Pointy hat to: sos
This commit is contained in:
parent
ea924c4cd3
commit
fa9dc8d090
1 changed files with 3 additions and 2 deletions
|
|
@ -73,8 +73,9 @@ ata_transaction(struct ata_request *request)
|
|||
request->device->channel->running = request;
|
||||
|
||||
/* disable ATAPI DMA writes if HW doesn't support it */
|
||||
if (request->flags & (ATA_R_ATAPI | ATA_R_DMA | ATA_R_WRITE) &&
|
||||
request->device->channel->flags & ATA_ATAPI_DMA_RO)
|
||||
if ((request->device->channel->flags & ATA_ATAPI_DMA_RO) &&
|
||||
((request->flags & (ATA_R_ATAPI | ATA_R_DMA | ATA_R_WRITE)) ==
|
||||
(ATA_R_ATAPI | ATA_R_DMA | ATA_R_WRITE)))
|
||||
request->flags &= ~ATA_R_DMA;
|
||||
|
||||
switch (request->flags & (ATA_R_ATAPI | ATA_R_DMA)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue