Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/tegra sleep before asking the PMIC to power off



details:   https://anonhg.NetBSD.org/src/rev/9936b7cff128
branches:  trunk
changeset: 341636:9936b7cff128
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 14 23:04:30 2015 +0000

description:
sleep before asking the PMIC to power off

diffstat:

 sys/arch/evbarm/tegra/tegra_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 63f45d47e37a -r 9936b7cff128 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Nov 14 23:00:17 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sat Nov 14 23:04:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.27 2015/11/14 13:28:53 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.28 2015/11/14 23:04:30 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.27 2015/11/14 13:28:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.28 2015/11/14 23:04:30 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -547,11 +547,11 @@
 #if NAS3722PMIC > 0
        device_t pmic = device_find_by_driver_unit("as3722pmic", 0);
        if (pmic != NULL) {
+               delay(1000000);
                if (as3722_poweroff(pmic) != 0) {
                        printf("WARNING: AS3722 poweroff failed\n");
                        return;
                }
-               delay(1000000);
        }
 #endif
 }



Home | Main Index | Thread Index | Old Index