summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-12-24 14:34:28 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-12-24 14:34:28 +0000
commit74b44bcefa0ed9b07e191790e2383bc458ef402e (patch)
tree5f1849a3191165d076966773438cd7387f9b50b5 /sys/dev/pci
parent715b710539847f7ce00049a893d9d6cd725fae2a (diff)
In msk_marv_miibus_writereg, wait for busy flag to clear instead of
continuing when busy flag set.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_msk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c
index d9b9eff7e6e..1ab101b7b06 100644
--- a/sys/dev/pci/if_msk.c
+++ b/sys/dev/pci/if_msk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_msk.c,v 1.32 2006/12/16 20:19:34 kettenis Exp $ */
+/* $OpenBSD: if_msk.c,v 1.33 2006/12/24 14:34:27 kettenis Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -299,7 +299,7 @@ msk_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;
}