aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-11-03 14:40:56 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:19:44 -0500
commitee11560f3ad150a1108d261cbff4fd617cc3fa09 (patch)
treecd833160e0d5ef6e2e83714d8e15385c5ca2dfaf /drivers/scsi/ufs
parentc8b09f6fb67df7fc1b51ced1037fa9b677428149 (diff)
scsi: don't force tagged_supported in drivers
Now that we also get proper values in cmd->request->tag for untagged commands, there is no need to force tagged_supported to on in drivers that need host-wide tags. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/ufs')
-rw-r--r--drivers/scsi/ufs/ufshcd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 5eb4931e2adc..67e2280e2be3 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -2695,8 +2695,7 @@ static void ufshcd_set_queue_depth(struct scsi_device *sdev)
2695 2695
2696 dev_dbg(hba->dev, "%s: activate tcq with queue depth %d\n", 2696 dev_dbg(hba->dev, "%s: activate tcq with queue depth %d\n",
2697 __func__, lun_qdepth); 2697 __func__, lun_qdepth);
2698 if (sdev->tagged_supported) 2698 scsi_adjust_queue_depth(sdev, lun_qdepth);
2699 scsi_adjust_queue_depth(sdev, lun_qdepth);
2700} 2699}
2701 2700
2702/* 2701/*
@@ -2766,7 +2765,6 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
2766 struct ufs_hba *hba; 2765 struct ufs_hba *hba;
2767 2766
2768 hba = shost_priv(sdev->host); 2767 hba = shost_priv(sdev->host);
2769 sdev->tagged_supported = 1;
2770 2768
2771 /* Mode sense(6) is not supported by UFS, so use Mode sense(10) */ 2769 /* Mode sense(6) is not supported by UFS, so use Mode sense(10) */
2772 sdev->use_10_for_ms = 1; 2770 sdev->use_10_for_ms = 1;
@@ -2806,8 +2804,6 @@ static int ufshcd_change_queue_depth(struct scsi_device *sdev,
2806 switch (reason) { 2804 switch (reason) {
2807 case SCSI_QDEPTH_DEFAULT: 2805 case SCSI_QDEPTH_DEFAULT:
2808 case SCSI_QDEPTH_RAMP_UP: 2806 case SCSI_QDEPTH_RAMP_UP:
2809 if (!sdev->tagged_supported)
2810 depth = 1;
2811 scsi_adjust_queue_depth(sdev, depth); 2807 scsi_adjust_queue_depth(sdev, depth);
2812 break; 2808 break;
2813 case SCSI_QDEPTH_QFULL: 2809 case SCSI_QDEPTH_QFULL: