ufs: Fix sending unsupported SCSI command
authorSujit Reddy Thumma <sthumma@codeaurora.org>
Tue, 1 Jul 2014 09:22:38 +0000 (12:22 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:02 +0000 (17:17 -0400)
UFS 1.1 specification does not support MAINTENANCE IN(0xA3) SCSI
command and hence it doesn't support REPORT SUPPORTED OPERATION CODES
as well.

Change-Id: Ic09c5b46b2511b1c28db478023c32b898ac69e6d
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c

index b533ff8afe240887885f24b25d00a6fe3527d104..f189e8a6cb1e6f36363c20a1ad2c29da9b82ef42 100644 (file)
@@ -1992,6 +1992,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
        /* allow SCSI layer to restart the device in case of errors */
        sdev->allow_restart = 1;
 
+       /* REPORT SUPPORTED OPERATION CODES is not supported */
+       sdev->no_report_opcodes = 1;
+
        lun_qdepth = ufshcd_read_sdev_qdepth(hba, sdev);
        if (lun_qdepth <= 0)
                /* eventually, we can figure out the real queue depth */
This page took 0.029456 seconds and 5 git commands to generate.