diff options
author | Tejun Heo <htejun@gmail.com> | 2006-03-31 11:38:18 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-01 12:33:45 -0500 |
commit | e1211e3fa7fd05ff0d4f597fd37e40de8acc6784 (patch) | |
tree | 672018d7facf99ad4d45b09e2e2980accebdfe38 /drivers/scsi/libata-scsi.c | |
parent | 9974e7cc6c8b8ea796c92cdf28db93e4579a4000 (diff) |
[PATCH] libata: implement ata_dev_enabled and disabled()
This patch renames ata_dev_present() to ata_dev_enabled() and adds
ata_dev_disabled(). This is to discern the state where a device is
present but disabled from not-present state. This disctinction is
necessary when configuring transfer mode because device selection
timing must not be violated even if a device fails to configure.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 53f5b0d9161c..c1a4b29a9ae1 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2349,7 +2349,7 @@ ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev) | |||
2349 | (scsidev->lun != 0))) | 2349 | (scsidev->lun != 0))) |
2350 | return NULL; | 2350 | return NULL; |
2351 | 2351 | ||
2352 | if (unlikely(!ata_dev_present(dev))) | 2352 | if (unlikely(!ata_dev_enabled(dev))) |
2353 | return NULL; | 2353 | return NULL; |
2354 | 2354 | ||
2355 | if (!atapi_enabled || (ap->flags & ATA_FLAG_NO_ATAPI)) { | 2355 | if (!atapi_enabled || (ap->flags & ATA_FLAG_NO_ATAPI)) { |
@@ -2743,7 +2743,7 @@ void ata_scsi_scan_host(struct ata_port *ap) | |||
2743 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 2743 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
2744 | dev = &ap->device[i]; | 2744 | dev = &ap->device[i]; |
2745 | 2745 | ||
2746 | if (ata_dev_present(dev)) | 2746 | if (ata_dev_enabled(dev)) |
2747 | scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0); | 2747 | scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0); |
2748 | } | 2748 | } |
2749 | } | 2749 | } |