diff options
author | Mark Lord <liml@rtr.ca> | 2008-05-14 09:18:12 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-05-19 17:27:47 -0400 |
commit | 9dcffd99d0b1c0c1b8b2c0f85d240e791eca1055 (patch) | |
tree | 25eeccca0f7268db5117adbdfe4a28592011c07f /drivers/ata/sata_mv.c | |
parent | 68b90ee7c8046864301823d8d4449eb1ce1d2f74 (diff) |
sata_mv: always do softreset
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>
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r-- | drivers/ata/sata_mv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index bb73b2222627..bbacdd90f554 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -2728,6 +2728,7 @@ static int mv_hardreset(struct ata_link *link, unsigned int *class, | |||
2728 | 2728 | ||
2729 | rc = sata_link_hardreset(link, timing, deadline + extra, | 2729 | rc = sata_link_hardreset(link, timing, deadline + extra, |
2730 | &online, NULL); | 2730 | &online, NULL); |
2731 | rc = online ? -EAGAIN : rc; | ||
2731 | if (rc) | 2732 | if (rc) |
2732 | return rc; | 2733 | return rc; |
2733 | sata_scr_read(link, SCR_STATUS, &sstatus); | 2734 | sata_scr_read(link, SCR_STATUS, &sstatus); |