diff options
| author | Sujit Reddy Thumma <sthumma@codeaurora.org> | 2013-10-15 18:47:05 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 10:55:45 -0700 |
| commit | 3ae96f80aa0d5169c85fe40bc656fcf1bfed89fd (patch) | |
| tree | 169e14266b05da306cd4a7fc03ec37f3fd38a845 | |
| parent | 5a390083a385311a6a43c8e3886b07ad726df777 (diff) | |
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.
Change-Id: If3108134ceefbcb9c8585c1b489b4124ffa6b1ad
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
[subhashj@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
| -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 a031e78d5532..3ac3f867543a 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -3040,6 +3040,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev) /* try read capactiy (10) first as rc_16 is optional in UFS spec. */ sdev->try_rc_10_first = 1; + /* WRITE_SAME command is not supported*/ + sdev->no_write_same = 1; + ufshcd_set_queue_depth(sdev); ufshcd_get_lu_power_on_wp_status(hba, sdev); |
