Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f8e7f17 authored by Vinayak Kale's avatar Vinayak Kale Committed by Tejun Heo
Browse files

libata: enable LBA flag in taskfile for ata_scsi_pass_thru()



Enable LBA in taskfile flags for ata_scsi_pass_thru()

Signed-off-by: default avatarVinayak Kale <vinayak.kale@seagate.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent ee7fb331
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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.