scsi: ufs: Enable quirk to ignore sending WRITE_SAME command
authorSujit Reddy Thumma <[email protected]>
Wed, 24 Jan 2018 04:22:35 +0000 (09:52 +0530)
committerMartin K. Petersen <[email protected]>
Wed, 31 Jan 2018 02:19:53 +0000 (21:19 -0500)
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 <[email protected]>
Signed-off-by: Subhash Jadavani <[email protected]>
Signed-off-by: Asutosh Das <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/ufs/ufshcd.c

index 011c3369082c6f19772e227989cd7eb6b335179a..8196976182c9201ba380495a6e3761f0703cabfb 100644 (file)
@@ -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);