Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/arch/mips/cavium/dev Apply patch, requested by simonb...



details:   https://anonhg.NetBSD.org/src/rev/86e0b803621f
branches:  netbsd-9
changeset: 1001771:86e0b803621f
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 19 17:39:04 2020 +0000

description:
Apply patch, requested by simonb in ticket #918:

the updated octeon_rnm(4) driver fails a bogus randomness
test in the netbsd-9 rnd(9) driver for RND_TYPE_RNG type devices so
uses the RND_TYPE_UNKNOWN type.  This approach is used by other drivers
on the netbsd-9 branch.

diffstat:

 sys/arch/mips/cavium/dev/octeon_rnm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9bb850d6ebd5 -r 86e0b803621f sys/arch/mips/cavium/dev/octeon_rnm.c
--- a/sys/arch/mips/cavium/dev/octeon_rnm.c     Tue May 19 17:35:50 2020 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_rnm.c     Tue May 19 17:39:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: octeon_rnm.c,v 1.2.4.1 2020/05/19 17:35:50 martin Exp $        */
+/*     $NetBSD: octeon_rnm.c,v 1.2.4.2 2020/05/19 17:39:04 martin Exp $        */
 
 /*
  * Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -99,7 +99,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: octeon_rnm.c,v 1.2.4.1 2020/05/19 17:35:50 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: octeon_rnm.c,v 1.2.4.2 2020/05/19 17:39:04 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -214,7 +214,7 @@
 
        /* Attach the rndsource.  */
        rndsource_setcb(&sc->sc_rndsrc, octeon_rnm_rng, sc);
-       rnd_attach_source(&sc->sc_rndsrc, device_xname(self), RND_TYPE_RNG,
+       rnd_attach_source(&sc->sc_rndsrc, device_xname(self), RND_TYPE_UNKNOWN,
            RND_FLAG_DEFAULT | RND_FLAG_HASCB);
 }
 



Home | Main Index | Thread Index | Old Index