diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-09-20 18:10:55 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 13:39:48 -0400 |
commit | e211e2c7b6e7f470c818ef67c952954e1b46a46d (patch) | |
tree | aa53972c703b9ae0340afb1d55daf9c9e2e4472a /drivers/scsi/mvsas/mv_sas.c | |
parent | 97a1420d127ca1db2fd665707bf4e9501758147c (diff) |
[SCSI] mvsas: remove mvs_slave_{alloc|configure}
libsas now handles:
1/ limiting ata scanning to lun0
2/ maximizing the queue_depth of sas devices (up to 256, mvsas only
supports 64)
3/ changes to /sys/block/<sdX>/device/queue_depth for ata devices
Acked-by: Xiangliang Yu <yuxiangl@marvell.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.c')
-rw-r--r-- | drivers/scsi/mvsas/mv_sas.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index 4196eee33dc9..f2ac01fd09c0 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi/mvsas/mv_sas.c | |||
@@ -276,36 +276,6 @@ static void mvs_bytes_dmaed(struct mvs_info *mvi, int i) | |||
276 | PORTE_BYTES_DMAED); | 276 | PORTE_BYTES_DMAED); |
277 | } | 277 | } |
278 | 278 | ||
279 | int mvs_slave_alloc(struct scsi_device *scsi_dev) | ||
280 | { | ||
281 | struct domain_device *dev = sdev_to_domain_dev(scsi_dev); | ||
282 | if (dev_is_sata(dev)) { | ||
283 | /* We don't need to rescan targets | ||
284 | * if REPORT_LUNS request is failed | ||
285 | */ | ||
286 | if (scsi_dev->lun > 0) | ||
287 | return -ENXIO; | ||
288 | scsi_dev->tagged_supported = 1; | ||
289 | } | ||
290 | |||
291 | return sas_slave_alloc(scsi_dev); | ||
292 | } | ||
293 | |||
294 | int mvs_slave_configure(struct scsi_device *sdev) | ||
295 | { | ||
296 | struct domain_device *dev = sdev_to_domain_dev(sdev); | ||
297 | int ret = sas_slave_configure(sdev); | ||
298 | |||
299 | if (ret) | ||
300 | return ret; | ||
301 | if (!dev_is_sata(dev)) { | ||
302 | sas_change_queue_depth(sdev, | ||
303 | MVS_QUEUE_SIZE, | ||
304 | SCSI_QDEPTH_DEFAULT); | ||
305 | } | ||
306 | return 0; | ||
307 | } | ||
308 | |||
309 | void mvs_scan_start(struct Scsi_Host *shost) | 279 | void mvs_scan_start(struct Scsi_Host *shost) |
310 | { | 280 | { |
311 | int i, j; | 281 | int i, j; |