diff options
author | Dan Williams <dan.j.williams@intel.com> | 2012-01-20 18:26:03 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-29 16:39:25 -0500 |
commit | 9a10b33caf78f897356ac006c455e6060a40af15 (patch) | |
tree | 9c5f9abf97b8582895eb6b4f3b244d1dc854f7b6 /drivers/scsi/libsas | |
parent | 840234745edaa82d514420dc1086e63536493a51 (diff) |
[SCSI] libsas: revert ata srst
libata issues follow up srsts when the controller has a hard time
recording the signature-fis after a reset, or if the link supports port
multipliers. libsas does not support port multipliers and no current
libsas lldds appear to need help retrieving the signature fis. Revert
it for now to remove confusion.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/libsas')
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index eb8b77c86169..08d2103a45b7 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -443,43 +443,6 @@ static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class, | |||
443 | return ret; | 443 | return ret; |
444 | } | 444 | } |
445 | 445 | ||
446 | static int sas_ata_soft_reset(struct ata_link *link, unsigned int *class, | ||
447 | unsigned long deadline) | ||
448 | { | ||
449 | struct ata_port *ap = link->ap; | ||
450 | struct domain_device *dev = ap->private_data; | ||
451 | struct sas_internal *i = dev_to_sas_internal(dev); | ||
452 | int res = TMF_RESP_FUNC_FAILED; | ||
453 | int ret = 0; | ||
454 | |||
455 | if (i->dft->lldd_ata_soft_reset) | ||
456 | res = i->dft->lldd_ata_soft_reset(dev); | ||
457 | |||
458 | if (res != TMF_RESP_FUNC_COMPLETE) { | ||
459 | SAS_DPRINTK("%s: Unable to soft reset\n", __func__); | ||
460 | ret = -EAGAIN; | ||
461 | } | ||
462 | |||
463 | switch (dev->sata_dev.command_set) { | ||
464 | case ATA_COMMAND_SET: | ||
465 | SAS_DPRINTK("%s: Found ATA device.\n", __func__); | ||
466 | *class = ATA_DEV_ATA; | ||
467 | break; | ||
468 | case ATAPI_COMMAND_SET: | ||
469 | SAS_DPRINTK("%s: Found ATAPI device.\n", __func__); | ||
470 | *class = ATA_DEV_ATAPI; | ||
471 | break; | ||
472 | default: | ||
473 | SAS_DPRINTK("%s: Unknown SATA command set: %d.\n", | ||
474 | __func__, dev->sata_dev.command_set); | ||
475 | *class = ATA_DEV_UNKNOWN; | ||
476 | break; | ||
477 | } | ||
478 | |||
479 | ap->cbl = ATA_CBL_SATA; | ||
480 | return ret; | ||
481 | } | ||
482 | |||
483 | /* | 446 | /* |
484 | * notify the lldd to forget the sas_task for this internal ata command | 447 | * notify the lldd to forget the sas_task for this internal ata command |
485 | * that bypasses scsi-eh | 448 | * that bypasses scsi-eh |
@@ -563,7 +526,6 @@ static void sas_ata_set_dmamode(struct ata_port *ap, struct ata_device *ata_dev) | |||
563 | 526 | ||
564 | static struct ata_port_operations sas_sata_ops = { | 527 | static struct ata_port_operations sas_sata_ops = { |
565 | .prereset = ata_std_prereset, | 528 | .prereset = ata_std_prereset, |
566 | .softreset = sas_ata_soft_reset, | ||
567 | .hardreset = sas_ata_hard_reset, | 529 | .hardreset = sas_ata_hard_reset, |
568 | .postreset = ata_std_postreset, | 530 | .postreset = ata_std_postreset, |
569 | .error_handler = ata_std_error_handler, | 531 | .error_handler = ata_std_error_handler, |