[PATCH] libata: use FLUSH_EXT only when driver is larger than LBA28 limit
[deliverable/linux.git] / drivers / ata / libata-scsi.c
index f13dd07a5331403d028b511794c997a1edf245f8..7a55c2e4ea6ed4db5b5bda615cc0807e8bc75e3e 100644 (file)
@@ -1027,8 +1027,7 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc, const u8 *scs
        tf->flags |= ATA_TFLAG_DEVICE;
        tf->protocol = ATA_PROT_NODATA;
 
-       if ((qc->dev->flags & ATA_DFLAG_LBA48) &&
-           (ata_id_has_flush_ext(qc->dev->id)))
+       if (qc->dev->flags & ATA_DFLAG_FLUSH_EXT)
                tf->command = ATA_CMD_FLUSH_EXT;
        else
                tf->command = ATA_CMD_FLUSH;
This page took 0.028171 seconds and 5 git commands to generate.