ahci: set dma feature flag
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Dec 2010 07:39:45 +0000 (08:39 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 12 Dec 2010 19:00:33 +0000 (14:00 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/ahci.c

index 6c3127ae4c6421add41d784a0a9e4d07468f97b7..ee50e8fe88877ac31e6987161a846a03054cb543 100644 (file)
@@ -50,6 +50,7 @@ static void sata_prep_readwrite(struct sata_cmd_fis *fis,
         command = (iswrite ? ATA_CMD_WRITE_DMA
                    : ATA_CMD_READ_DMA);
     }
+    SET_FLATPTR(fis->feature,      1); /* dma */
     SET_FLATPTR(fis->command,      command);
     SET_FLATPTR(fis->sector_count, op->count);
     SET_FLATPTR(fis->lba_low,      lba);
@@ -62,6 +63,7 @@ static void sata_prep_atapi(struct sata_cmd_fis *fis, u16 blocksize)
 {
     memset_fl(fis, 0, sizeof(*fis));
     SET_FLATPTR(fis->command,  ATA_CMD_PACKET);
+    SET_FLATPTR(fis->feature,  1); /* dma */
     SET_FLATPTR(fis->lba_mid,  blocksize);
     SET_FLATPTR(fis->lba_high, blocksize >> 8);
 }