Browse Source

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>
Vinayak Kale 9 years ago
parent
commit
5f8e7f17f6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      drivers/ata/libata-scsi.c

+ 3 - 0
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)
 	if ((tf->protocol = ata_scsi_map_proto(cdb[1])) == ATA_PROT_UNKNOWN)
 		goto invalid_fld;
 		goto invalid_fld;
 
 
+	/* enable LBA */
+	tf->flags |= ATA_TFLAG_LBA;
+
 	/*
 	/*
 	 * 12 and 16 byte CDBs use different offsets to
 	 * 12 and 16 byte CDBs use different offsets to
 	 * provide the various register values.
 	 * provide the various register values.