Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/samsung bus_width is not used, so don't fetch i...



details:   https://anonhg.NetBSD.org/src/rev/fcedee38fb27
branches:  trunk
changeset: 815629:fcedee38fb27
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon May 30 16:38:35 2016 +0000

description:
bus_width is not used, so don't fetch it; but do leave the logic in place
commented out so it's there if anyone wants it in the future.
PR 50594 from David Binderman.

diffstat:

 sys/arch/arm/samsung/exynos_dwcmmc.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 286c591a3aea -r fcedee38fb27 sys/arch/arm/samsung/exynos_dwcmmc.c
--- a/sys/arch/arm/samsung/exynos_dwcmmc.c      Mon May 30 16:35:35 2016 +0000
+++ b/sys/arch/arm/samsung/exynos_dwcmmc.c      Mon May 30 16:38:35 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exynos_dwcmmc.c,v 1.2 2015/12/27 20:49:01 jmcneill Exp $ */
+/* $NetBSD: exynos_dwcmmc.c,v 1.3 2016/05/30 16:38:35 dholland Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exynos_dwcmmc.c,v 1.2 2015/12/27 20:49:01 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exynos_dwcmmc.c,v 1.3 2016/05/30 16:38:35 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -84,7 +84,7 @@
        char intrstr[128];
        bus_addr_t addr;
        bus_size_t size;
-       u_int bus_width, ciu_div, fifo_depth;
+       u_int ciu_div, fifo_depth;
        int error;
 
        if (fdtbus_get_reg(phandle, 0, &addr, &size) != 0) {
@@ -92,9 +92,9 @@
                return;
        }
 
-       if (of_getprop_uint32(phandle, "bus-width", &bus_width)) {
-               bus_width = 4;
-       }
+       //if (of_getprop_uint32(phandle, "bus-width", &bus_width)) {
+       //      bus_width = 4;
+       //}
        if (of_getprop_uint32(phandle, "fifo-depth", &fifo_depth)) {
                fifo_depth = 64;
        }



Home | Main Index | Thread Index | Old Index