summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-04-17 10:11:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-04-17 10:11:30 +0000
commitc659dee1c3055661c38caf69bd302decec5f94d6 (patch)
tree8c5962e55a277d3999b5899d3602347e39ff09bf /sys/dev/pci
parent1078c71559b0b5227bdad9d19abfb7a83056bf6d (diff)
If there is a timeout while writing to the PHY in
sk_marv_miibus_writereg() then print a message indicating so, as done in the XMAC case.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_sk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index cb00c98c8e7..80e5ee6367c 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.97 2006/04/17 04:45:02 brad Exp $ */
+/* $OpenBSD: if_sk.c,v 1.98 2006/04/17 10:11:29 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -423,6 +423,9 @@ sk_marv_miibus_writereg(dev, phy, reg, val)
if (SK_YU_READ_2(sc_if, YUKON_SMICR) & YU_SMICR_BUSY)
break;
}
+
+ if (i == SK_TIMEOUT)
+ printf("%s: phy write timed out\n", sc_if->sk_dev.dv_xname);
}
void