Skip to content

Commit

Permalink
[PATCH] libata: fix ata_std_probe_reset() SATA detection
Browse files Browse the repository at this point in the history
ap->cbl is initialized during postreset and thus unknown on entry to
ata_std_probe_reset().  This patch makes ata_std_probe_reset() use
ATA_FLAG_SATA flag instead of ap->cbl to detect SATA port.

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 9, 2006
1 parent c18d06f commit b911fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ int ata_std_probe_reset(struct ata_port *ap, unsigned int *classes)
ata_reset_fn_t hardreset;

hardreset = NULL;
if (ap->cbl == ATA_CBL_SATA && ap->ops->scr_read)
if (ap->flags & ATA_FLAG_SATA && ap->ops->scr_read)
hardreset = sata_std_hardreset;

return ata_drive_probe_reset(ap, ata_std_softreset, hardreset,
Expand Down

0 comments on commit b911fc3

Please sign in to comment.