summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorSujit Reddy Thumma <sthumma@codeaurora.org>2018-01-24 09:52:35 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2018-01-30 21:19:53 -0500
commit84af7e8b895088d89f246d6b0f82717fafdebf61 (patch)
tree4fd60010d10f8ca69b3f7b5720f460acf58f6847 /drivers/scsi
parentc39813652700f3df552b6557530f1e5f782dbe2f (diff)
downloadlinux-84af7e8b895088d89f246d6b0f82717fafdebf61.tar.gz
linux-84af7e8b895088d89f246d6b0f82717fafdebf61.tar.bz2
linux-84af7e8b895088d89f246d6b0f82717fafdebf61.zip
scsi: ufs: Enable quirk to ignore sending WRITE_SAME command
WRITE_SAME command is not supported by UFS. Enable a quirk for the upper level drivers to not send WRITE SAME command. [mkp: botched patch, applied by hand] Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org> Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Asutosh Das <asutoshd@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 011c3369082c..8196976182c9 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -4352,6 +4352,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
/* REPORT SUPPORTED OPERATION CODES is not supported */
sdev->no_report_opcodes = 1;
+ /* WRITE_SAME command is not supported */
+ sdev->no_write_same = 1;
ufshcd_set_queue_depth(sdev);