]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libata: enable LBA flag in taskfile for ata_scsi_pass_thru()
authorVinayak Kale <vinayak.kale@seagate.com>
Tue, 27 Oct 2015 07:41:46 +0000 (13:11 +0530)
committerTejun Heo <tj@kernel.org>
Tue, 27 Oct 2015 07:48:01 +0000 (16:48 +0900)
Enable LBA in taskfile flags for ata_scsi_pass_thru()

Signed-off-by: Vinayak Kale <vinayak.kale@seagate.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c

index 8dffa99909850459eb88b825cc618b5e4049ca25..8b3a7861fa44c205490788d4538e5da300270ffb 100644 (file)
@@ -2947,6 +2947,9 @@ static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc)
        if ((tf->protocol = ata_scsi_map_proto(cdb[1])) == ATA_PROT_UNKNOWN)
                goto invalid_fld;
 
+       /* enable LBA */
+       tf->flags |= ATA_TFLAG_LBA;
+
        /*
         * 12 and 16 byte CDBs use different offsets to
         * provide the various register values.