Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi sun8icrypto(4): Switch off polling when r...
details: https://anonhg.NetBSD.org/src/rev/52be181ff268
branches: trunk
changeset: 366135:52be181ff268
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun May 15 16:58:28 2022 +0000
description:
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.
diffstat:
sys/arch/arm/sunxi/sun8i_crypto.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 11b3c8788058 -r 52be181ff268 sys/arch/arm/sunxi/sun8i_crypto.c
--- a/sys/arch/arm/sunxi/sun8i_crypto.c Sun May 15 16:43:39 2022 +0000
+++ b/sys/arch/arm/sunxi/sun8i_crypto.c Sun May 15 16:58:28 2022 +0000
@@ -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 @@
* 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);
Home |
Main Index |
Thread Index |
Old Index