From: Sujit Reddy Thumma Date: Wed, 24 Jan 2018 04:22:35 +0000 (+0530) Subject: scsi: ufs: Enable quirk to ignore sending WRITE_SAME command X-Git-Tag: v4.16-rc3~14^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84af7e8b895088d89f246d6b0f82717fafdebf61;p=thirdparty%2Flinux.git 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 Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 011c3369082c6..8196976182c92 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);