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/1803d602ae1c
branches:  trunk
changeset: 969790:1803d602ae1c
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 9ff98a81bed2 -r 1803d602ae1c 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