diff options
author | Sujit Reddy Thumma <sthumma@codeaurora.org> | 2014-07-01 05:22:38 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-25 17:17:02 -0400 |
commit | b2a6c5223c1e1fe293e965685a8373a6a7aca5fe (patch) | |
tree | 090c7213fbe4c6ef24452680cf57bf7e8cb140e7 /drivers | |
parent | e9d501b154ff62030670f7a210ed00d4cc2cae26 (diff) |
ufs: Fix sending unsupported SCSI command
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index b533ff8afe24..f189e8a6cb1e 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c | |||
@@ -1992,6 +1992,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev) | |||
1992 | /* allow SCSI layer to restart the device in case of errors */ | 1992 | /* allow SCSI layer to restart the device in case of errors */ |
1993 | sdev->allow_restart = 1; | 1993 | sdev->allow_restart = 1; |
1994 | 1994 | ||
1995 | /* REPORT SUPPORTED OPERATION CODES is not supported */ | ||
1996 | sdev->no_report_opcodes = 1; | ||
1997 | |||
1995 | lun_qdepth = ufshcd_read_sdev_qdepth(hba, sdev); | 1998 | lun_qdepth = ufshcd_read_sdev_qdepth(hba, sdev); |
1996 | if (lun_qdepth <= 0) | 1999 | if (lun_qdepth <= 0) |
1997 | /* eventually, we can figure out the real queue depth */ | 2000 | /* eventually, we can figure out the real queue depth */ |