Module Name:    src
Committed By:   riastradh
Date:           Sun May 15 16:58:28 UTC 2022

Modified Files:
        src/sys/arch/arm/sunxi: sun8i_crypto.c

Log Message:
sun8icrypto(4): Switch off polling when ready for interrupts.

When I introduced logic to do polling and then interrupts, I
accidentally made it switch polling from on to...still on, which had
the effect of breaking the logic after sun8i_crypto_attach because
only sun8i_crypto_attach actually did polling.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/arm/sunxi/sun8i_crypto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sun8i_crypto.c
diff -u src/sys/arch/arm/sunxi/sun8i_crypto.c:1.30 src/sys/arch/arm/sunxi/sun8i_crypto.c:1.31
--- src/sys/arch/arm/sunxi/sun8i_crypto.c:1.30	Sat Mar 19 11:37:05 2022
+++ src/sys/arch/arm/sunxi/sun8i_crypto.c	Sun May 15 16:58:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: sun8i_crypto.c,v 1.30 2022/03/19 11:37:05 riastradh Exp $	*/
+/*	$NetBSD: sun8i_crypto.c,v 1.31 2022/05/15 16:58:28 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.30 2022/03/19 11:37:05 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.31 2022/05/15 16:58:28 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -494,7 +494,7 @@ sun8i_crypto_attach(device_t parent, dev
 	 * be from us because we've kept ICR set to 0 to mask all
 	 * interrupts, but in case the interrupt vector is shared.
 	 */
-	atomic_store_relaxed(&sc->sc_polling, true);
+	atomic_store_relaxed(&sc->sc_polling, false);
 
 	/* Attach the sysctl.  */
 	sun8i_crypto_sysctl_attach(sc);

Reply via email to