[libata] add DMA setup FIS auto-activate feature
[firefly-linux-kernel-4.4.55.git] / drivers / ata / ahci.c
index fe3eba5d6b3ef93633cbe3dfc76827d986ed04cf..7a3124a9abc6b4ccd301a123622dd02082848a3f 100644 (file)
@@ -2869,7 +2869,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        /* prepare host */
        if (hpriv->cap & HOST_CAP_NCQ)
-               pi.flags |= ATA_FLAG_NCQ;
+               pi.flags |= ATA_FLAG_NCQ | ATA_FLAG_FPDMA_AA;
 
        if (hpriv->cap & HOST_CAP_PMP)
                pi.flags |= ATA_FLAG_PMP;