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 Write back the data value instead of mask...



details:   https://anonhg.NetBSD.org/src/rev/02a3f26068a4
branches:  trunk
changeset: 355003:02a3f26068a4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jul 08 00:26:19 2017 +0000

description:
Write back the data value instead of mask in sunxi_gpio_write

diffstat:

 sys/arch/arm/sunxi/sunxi_gpio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8a7020fc0d93 -r 02a3f26068a4 sys/arch/arm/sunxi/sunxi_gpio.c
--- a/sys/arch/arm/sunxi/sunxi_gpio.c   Fri Jul 07 23:48:34 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_gpio.c   Sat Jul 08 00:26:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_gpio.c,v 1.6 2017/07/06 22:10:14 jmcneill Exp $ */
+/* $NetBSD: sunxi_gpio.c,v 1.7 2017/07/08 00:26:19 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_soc.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_gpio.c,v 1.6 2017/07/06 22:10:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_gpio.c,v 1.7 2017/07/08 00:26:19 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -335,7 +335,7 @@
        device_printf(dev, "P%c%02d wr %08x -> %08x\n",
            pin_def->port + 'A', pin_def->pin, GPIO_READ(sc, data_reg), data);
 #endif
-       GPIO_WRITE(sc, data_reg, data_mask);
+       GPIO_WRITE(sc, data_reg, data);
        mutex_exit(&sc->sc_lock);
 }
 



Home | Main Index | Thread Index | Old Index