From 8e97394c59d05a50fd1466a83e3c6c2232694997 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 3 Jan 2007 23:04:29 +0000 Subject: In sk_marv_miibus_writereg, wait for busy flag to clear instead of continuing when busy flag set. --- sys/dev/pci/if_sk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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; } -- cgit v1.2.3