Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex Set attached to true when attach completes.



details:   https://anonhg.NetBSD.org/src/rev/ef987f8b6612
branches:  trunk
changeset: 828743:ef987f8b6612
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Dec 29 11:06:26 2017 +0000

description:
Set attached to true when attach completes.

Reported by Ramakrishna Rao Desetti on port-arm

diffstat:

 sys/arch/arm/cortex/a9wdt.c     |  6 ++++--
 sys/arch/arm/cortex/armperiph.c |  3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 8cde6e72b078 -r ef987f8b6612 sys/arch/arm/cortex/a9wdt.c
--- a/sys/arch/arm/cortex/a9wdt.c       Fri Dec 29 09:27:01 2017 +0000
+++ b/sys/arch/arm/cortex/a9wdt.c       Fri Dec 29 11:06:26 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $       */
+/*     $NetBSD: a9wdt.c,v 1.6 2017/12/29 11:06:26 skrll Exp $  */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.6 2017/12/29 11:06:26 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -257,4 +257,6 @@
        if (sysmon_wdog_register(&sc->sc_smw) != 0)
                aprint_error("%s: unable to register with sysmon\n",
                    device_xname(sc->sc_dev));
+
+       attached = true;
 }
diff -r 8cde6e72b078 -r ef987f8b6612 sys/arch/arm/cortex/armperiph.c
--- a/sys/arch/arm/cortex/armperiph.c   Fri Dec 29 09:27:01 2017 +0000
+++ b/sys/arch/arm/cortex/armperiph.c   Fri Dec 29 11:06:26 2017 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: armperiph.c,v 1.11 2017/05/26 21:17:46 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: armperiph.c,v 1.12 2017/12/29 11:06:26 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -237,4 +237,5 @@
 
                config_found(self, &mpcaa, NULL);
        }
+       attached = true;
 }



Home | Main Index | Thread Index | Old Index