Skip to content

Commit

Permalink
[PATCH] libata: don't do EDD handling if ->probe_reset is used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Feb 12, 2006
1 parent 0bd3300 commit 61eb066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61eb066

Please sign in to comment.