summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_mv.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-11 14:54:55 +0200
committerJeff Garzik <jeff@garzik.org>2006-09-11 14:54:55 +0200
commitdd1dc802368154a75926491092ec9e6a939c32df (patch)
treed30356622b57f9d993ff1c54a621c2d1f8cd31d9 /drivers/ata/sata_mv.c
parent[libata] Add pata_jmicron driver to Kconfig, Makefile (diff)
parent[PATCH] ata_piix: add map 01b for ICH7M (diff)
downloadlinux-dd1dc802368154a75926491092ec9e6a939c32df.tar.xz
linux-dd1dc802368154a75926491092ec9e6a939c32df.zip
Merge branch 'upstream-fixes' into upstream
Conflicts: drivers/ata/ata_piix.c
Diffstat (limited to 'drivers/ata/sata_mv.c')
-rw-r--r--drivers/ata/sata_mv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 34f1939b44c9..fdce6e07ecd2 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -1960,8 +1960,7 @@ comreset_retry:
timeout = jiffies + msecs_to_jiffies(200);
do {
sata_scr_read(ap, SCR_STATUS, &sstatus);
- sstatus &= 0x3;
- if ((sstatus == 3) || (sstatus == 0))
+ if (((sstatus & 0x3) == 3) || ((sstatus & 0x3) == 0))
break;
__msleep(1, can_sleep);