Skip to content

Commit

Permalink
[PATCH] sata_sil24: add hardreset
Browse files Browse the repository at this point in the history
Now that libata is smart enough to handle both soft and hard resets,
add hardreset method.  Note that sil24 hardreset doesn't supply
signature; still, the new reset mechanism can make good use of it.

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 10, 2006
1 parent 07b7347 commit 489ff4c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/scsi/sata_sil24.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,19 @@ static int sil24_softreset(struct ata_port *ap, int verbose,
return 0;
}

static int sil24_hardreset(struct ata_port *ap, int verbose,
unsigned int *class)
{
unsigned int dummy_class;

/* sil24 doesn't report device signature after hard reset */
return sata_std_hardreset(ap, verbose, &dummy_class);
}

static int sil24_probe_reset(struct ata_port *ap, unsigned int *classes)
{
return ata_drive_probe_reset(ap, ata_std_probeinit,
sil24_softreset, NULL,
sil24_softreset, sil24_hardreset,
ata_std_postreset, classes);
}

Expand Down

0 comments on commit 489ff4c

Please sign in to comment.