Revert "scsi: ufs: try read capacity (10) first"

This reverts commit 7d76a33cac7040f3e05c1a49fc312e53dc3b2f1c.
Read capacity (16) is used, in addition to reading capacity, for
reading unmap command parameters. In UFS spec since v2.0 read
capacity (16) command is mandatory for embedded devices.

If read capacity (16) is not supported by the device then it simply
rejects the scsi command with ILLEGAL_REQUEST in sense key. The sd
driver then retries with read capacity (10), thus keeping backward
compatibility.

Change-Id: Iaa2acdfab0d7f0f6e1ef20e370195a3b64068216
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
This commit is contained in:
Dolev Raviv 2014-03-20 11:21:56 +02:00 committed by David Keitel
parent 6a33acef6d
commit cf5c66a278

View file

@ -3257,9 +3257,6 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
/* REPORT SUPPORTED OPERATION CODES is not supported */
sdev->no_report_opcodes = 1;
/* try read capactiy (10) first as rc_16 is optional in UFS spec. */
sdev->try_rc_10_first = 1;
/* WRITE_SAME command is not supported*/
sdev->no_write_same = 1;