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/sata_sil.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/sata_sil.c')
-rw-r--r-- | drivers/scsi/sata_sil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c index 18c296c56899..d6c7086a5379 100644 --- a/drivers/scsi/sata_sil.c +++ b/drivers/scsi/sata_sil.c | |||
@@ -264,7 +264,7 @@ static void sil_post_set_mode (struct ata_port *ap) | |||
264 | 264 | ||
265 | for (i = 0; i < 2; i++) { | 265 | for (i = 0; i < 2; i++) { |
266 | dev = &ap->device[i]; | 266 | dev = &ap->device[i]; |
267 | if (!ata_dev_present(dev)) | 267 | if (!ata_dev_enabled(dev)) |
268 | dev_mode[i] = 0; /* PIO0/1/2 */ | 268 | dev_mode[i] = 0; /* PIO0/1/2 */ |
269 | else if (dev->flags & ATA_DFLAG_PIO) | 269 | else if (dev->flags & ATA_DFLAG_PIO) |
270 | dev_mode[i] = 1; /* PIO3/4 */ | 270 | dev_mode[i] = 1; /* PIO3/4 */ |