[PATCH] libata: don't do EDD handling if ->probe_reset is used
authorTejun Heo <htejun@gmail.com>
Sun, 12 Feb 2006 14:22:37 +0000 (23:22 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Sun, 12 Feb 2006 19:29:10 +0000 (14:29 -0500)
EDD is never used with ->probe_reset.  Don't handle EDD special case
in ata_dev_identify if ->probe_reset is in use.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c

index a0b6ca3d1a0c2f4dd7e5e8a094b4da9be78b25f5..21ae752cd95c20c31e7b70f2c0992f2600c8423a 100644 (file)
@@ -939,7 +939,8 @@ static void ata_dev_identify(struct ata_port *ap, unsigned int device)
                return;
        }
 
-       if (ap->flags & (ATA_FLAG_SRST | ATA_FLAG_SATA_RESET))
+       if (ap->ops->probe_reset ||
+           ap->flags & (ATA_FLAG_SRST | ATA_FLAG_SATA_RESET))
                using_edd = 0;
        else
                using_edd = 1;