summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/sdiahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c
index 2e1d6e0bc..159ee1607 100644
--- a/sys/src/9/pc/sdiahci.c
+++ b/sys/src/9/pc/sdiahci.c
@@ -723,7 +723,7 @@ ahcihbareset(Ahba *h)
h->ghc |= Hhr;
for(wait = 0; wait < 1000; wait += 100){
- if(h->ghc == 0)
+ if((h->ghc & Hhr) == 0)
return 0;
delay(100);
}