summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-01-03 23:04:29 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-01-03 23:04:29 +0000
commit8e97394c59d05a50fd1466a83e3c6c2232694997 (patch)
tree1bb3bb9814edcc594d0206e47b7833c951578d4a /sys/dev
parent5f39dffbe678ebe78ad5450ae348f75970bb1943 (diff)
In sk_marv_miibus_writereg, wait for busy flag to clear instead of
continuing when busy flag set.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_sk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 5c67baf4640..d3c188a531d 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.133 2007/01/03 11:49:16 krw Exp $ */
+/* $OpenBSD: if_sk.c,v 1.134 2007/01/03 23:04:28 kettenis Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -383,7 +383,7 @@ sk_marv_miibus_writereg(struct device *dev, int phy, int reg, int val)
for (i = 0; i < SK_TIMEOUT; i++) {
DELAY(1);
- if (SK_YU_READ_2(sc_if, YUKON_SMICR) & YU_SMICR_BUSY)
+ if (!(SK_YU_READ_2(sc_if, YUKON_SMICR) & YU_SMICR_BUSY))
break;
}