summaryrefslogtreecommitdiff
path: root/drivers/ata
diff options
context:
space:
mode:
authorVinayak Kale <vinayak.kale@seagate.com>2015-10-27 13:11:46 +0530
committerTejun Heo <tj@kernel.org>2015-10-27 16:48:01 +0900
commit5f8e7f17f6f5472d8029c22b1b8d3f9a4b1c8dff (patch)
tree9f1c268a4393f84806110752cee5d6a1a7a7cdee /drivers/ata
parentee7fb331c3ac642b6bf8b9dc6f23a6a2e389d717 (diff)
libata: enable LBA flag in taskfile for ata_scsi_pass_thru()
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-scsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 8dffa9990985..8b3a7861fa44 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -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.