aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_mv.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-03-31 11:38:18 -0500
committerJeff Garzik <jeff@garzik.org>2006-04-01 12:33:45 -0500
commite1211e3fa7fd05ff0d4f597fd37e40de8acc6784 (patch)
tree672018d7facf99ad4d45b09e2e2980accebdfe38 /drivers/scsi/sata_mv.c
parent9974e7cc6c8b8ea796c92cdf28db93e4579a4000 (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_mv.c')
-rw-r--r--drivers/scsi/sata_mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index fa901fd65085..0f7d334aadcc 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -1991,7 +1991,7 @@ comreset_retry:
1991 tf.nsect = readb((void __iomem *) ap->ioaddr.nsect_addr); 1991 tf.nsect = readb((void __iomem *) ap->ioaddr.nsect_addr);
1992 1992
1993 dev->class = ata_dev_classify(&tf); 1993 dev->class = ata_dev_classify(&tf);
1994 if (!ata_dev_present(dev)) { 1994 if (!ata_dev_enabled(dev)) {
1995 VPRINTK("Port disabled post-sig: No device present.\n"); 1995 VPRINTK("Port disabled post-sig: No device present.\n");
1996 ata_port_disable(ap); 1996 ata_port_disable(ap);
1997 } 1997 }