diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-12 09:22:37 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-12 14:29:10 -0500 |
commit | 61eb066affc02e16c548aef8b876c49c84113f40 (patch) | |
tree | a7e3b690dbedd5f9007a64d95ae85d6019b48978 | |
parent | 0bd3300ac9158b6ceef38fab6fb473765a40e77e (diff) |
[PATCH] libata: don't do EDD handling if ->probe_reset is used
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>
-rw-r--r-- | drivers/scsi/libata-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index a0b6ca3d1a0c..21ae752cd95c 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -939,7 +939,8 @@ static void ata_dev_identify(struct ata_port *ap, unsigned int device) | |||
939 | return; | 939 | return; |
940 | } | 940 | } |
941 | 941 | ||
942 | if (ap->flags & (ATA_FLAG_SRST | ATA_FLAG_SATA_RESET)) | 942 | if (ap->ops->probe_reset || |
943 | ap->flags & (ATA_FLAG_SRST | ATA_FLAG_SATA_RESET)) | ||
943 | using_edd = 0; | 944 | using_edd = 0; |
944 | else | 945 | else |
945 | using_edd = 1; | 946 | using_edd = 1; |