diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2007-01-19 19:59:10 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2007-01-19 19:59:10 +0000 |
commit | 94efd61ab66786f10713d77f623d6d325c514535 (patch) | |
tree | 3bd1513f2e800a303dc307fe79c267deb1eb2fd7 | |
parent | 52eb7c8446e726fedd6b68b131ac3579e77b99ce (diff) |
Update comment (on how long we wait for operation to complete) reflect
reality, and remove the maxpolls stuff at the same time. Still disabled
in-tree.
-rw-r--r-- | sys/arch/i386/pci/glxsb.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/arch/i386/pci/glxsb.c b/sys/arch/i386/pci/glxsb.c index 93908bb1280..3e6eb65fbe9 100644 --- a/sys/arch/i386/pci/glxsb.c +++ b/sys/arch/i386/pci/glxsb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: glxsb.c,v 1.5 2007/01/02 22:51:49 tom Exp $ */ +/* $OpenBSD: glxsb.c,v 1.6 2007/01/19 19:59:09 tom Exp $ */ /* * Copyright (c) 2006 Tom Cosgrove <tom@openbsd.org> @@ -167,8 +167,6 @@ struct glxsb_softc { int32_t sc_cid; int sc_nsessions; struct glxsb_session *sc_sessions; - - int maxpolls; /* XXX */ #endif /* CRYPTO */ }; @@ -448,20 +446,14 @@ glxsb_aes(struct glxsb_softc *sc, uint32_t control, uint32_t psrc, * * Since we have a maximum size of operation defined in * GLXSB_MAX_AES_LEN, we use this constant to decide how long - * to wait. Allow a couple of orders of magnitude longer than - * it should really take, just in case. + * to wait. Allow an order of magnitude longer than it should + * really take, just in case. */ for (i = 0; i < GLXSB_MAX_AES_LEN * 10; i++) { status = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SB_CTL_A); - if ((status & SB_CTL_ST) == 0) { /* Done */ - if (i > sc->maxpolls) { /* XXX */ - sc->maxpolls = i; - printf("%s: maxpolls now %d (len = %d)\n", - sc->sc_dev.dv_xname, i, len); - } + if ((status & SB_CTL_ST) == 0) /* Done */ return; - } } printf("%s: operation failed to complete\n", sc->sc_dev.dv_xname); |