Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia bus_dmatag_subregion isn't supported on ...



details:   https://anonhg.NetBSD.org/src/rev/b7b17a96b14a
branches:  trunk
changeset: 745416:b7b17a96b14a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 01 16:38:59 2020 +0000

description:
bus_dmatag_subregion isn't supported on (compiled into) arm so ifdef its
use in previous.

diffstat:

 sys/arch/arm/nvidia/tegra_sdhc.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r c8ac45ddb1ff -r b7b17a96b14a sys/arch/arm/nvidia/tegra_sdhc.c
--- a/sys/arch/arm/nvidia/tegra_sdhc.c  Sun Mar 01 16:31:01 2020 +0000
+++ b/sys/arch/arm/nvidia/tegra_sdhc.c  Sun Mar 01 16:38:59 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_sdhc.c,v 1.25 2020/02/15 12:45:05 skrll Exp $ */
+/* $NetBSD: tegra_sdhc.c,v 1.26 2020/03/01 16:38:59 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
 #include "locators.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.25 2020/02/15 12:45:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_sdhc.c,v 1.26 2020/03/01 16:38:59 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -111,13 +111,16 @@
                bus_width = 4;
 
        sc->sc.sc_dev = self;
+       sc->sc.sc_dmat = faa->faa_dmat;
 
+#ifdef _LP64
        error = bus_dmatag_subregion(faa->faa_dmat, 0, 0xffffffff,
            &sc->sc.sc_dmat, BUS_DMA_WAITOK);
        if (error != 0) {
                aprint_error(": couldn't create DMA tag: %d\n", error);
                return;
        }
+#endif
 
        sc->sc.sc_flags = SDHC_FLAG_32BIT_ACCESS |
                          SDHC_FLAG_NO_PWR0 |



Home | Main Index | Thread Index | Old Index