summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-06-06 17:27:19 +0000
committerimp <imp@FreeBSD.org>2008-06-06 17:27:19 +0000
commitb78502eaeea24f85d4c6e7f828b238179d636a21 (patch)
tree9ea9a48aeceea08afc987fb3e779bcd5a57932ce /sys/dev
parentc04ec928d613aa12480e10cf22f16ffc324af231 (diff)
downloadFreeBSD-src-b78502eaeea24f85d4c6e7f828b238179d636a21.zip
FreeBSD-src-b78502eaeea24f85d4c6e7f828b238179d636a21.tar.gz
Tweak a comment and a constant to restore old 30ms upper bound.
cs_readreg takes ~2us not ~1us to run.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cs/if_cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c
index 950b905..0784b20 100644
--- a/sys/dev/cs/if_cs.c
+++ b/sys/dev/cs/if_cs.c
@@ -183,10 +183,10 @@ wait_eeprom_ready(struct cs_softc *sc)
* be fast. The datasheet suggests that clock out from the part
* per word will be on the order of 25us, which is consistant with
* the 1MHz serial clock and 16bits... We should never hit 100,
- * let alone 30,000 here. The original code did an unconditional
- * 30ms DELAY here. Bad Kharma.
+ * let alone 15,000 here. The original code did an unconditional
+ * 30ms DELAY here. Bad Kharma. cs_readreg takes ~2us.
*/
- for (i = 0; i < 30000; i++) /* 30ms max */
+ for (i = 0; i < 15000; i++) /* 30ms max */
if (!(cs_readreg(sc, PP_SelfST) & SI_BUSY))
return (0);
return (1);
OpenPOWER on IntegriCloud