Skip to content

Commit

Permalink
sata_mv: always do softreset
Browse files Browse the repository at this point in the history
Always request a softreset after hardreset succeeds.

This fixes a regression reported by Martin Michlmayr <tbm@cyrius.com>.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Mark Lord authored and Jeff Garzik committed May 19, 2008
1 parent 68b90ee commit 9dcffd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,7 @@ static int mv_hardreset(struct ata_link *link, unsigned int *class,

rc = sata_link_hardreset(link, timing, deadline + extra,
&online, NULL);
rc = online ? -EAGAIN : rc;
if (rc)
return rc;
sata_scr_read(link, SCR_STATUS, &sstatus);
Expand Down

0 comments on commit 9dcffd9

Please sign in to comment.