Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Use __MASK(4) in bus_dmatag_subregion. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/e9d0f3c9c96e
branches:  trunk
changeset: 359794:e9d0f3c9c96e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jan 23 08:01:33 2022 +0000

description:
Use __MASK(4) in bus_dmatag_subregion.  NFCI.

diffstat:

 sys/dev/fdt/arasan_sdhc_fdt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c8347178c7ad -r e9d0f3c9c96e sys/dev/fdt/arasan_sdhc_fdt.c
--- a/sys/dev/fdt/arasan_sdhc_fdt.c     Sat Jan 22 22:53:58 2022 +0000
+++ b/sys/dev/fdt/arasan_sdhc_fdt.c     Sun Jan 23 08:01:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arasan_sdhc_fdt.c,v 1.7 2022/01/17 14:00:47 skrll Exp $ */
+/* $NetBSD: arasan_sdhc_fdt.c,v 1.8 2022/01/23 08:01:33 skrll Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arasan_sdhc_fdt.c,v 1.7 2022/01/17 14:00:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arasan_sdhc_fdt.c,v 1.8 2022/01/23 08:01:33 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -272,7 +272,7 @@
 
        const uint32_t caps = bus_space_read_4(sc->sc_bst, sc->sc_bsh, SDHC_CAPABILITIES);
        if ((caps & (SDHC_ADMA2_SUPP|SDHC_64BIT_SYS_BUS)) == SDHC_ADMA2_SUPP) {
-               error = bus_dmatag_subregion(faa->faa_dmat, 0, UINT32_MAX,
+               error = bus_dmatag_subregion(faa->faa_dmat, 0, __MASK(32),
                    &sc->sc_base.sc_dmat, BUS_DMA_WAITOK);
                if (error != 0) {
                        aprint_error(": couldn't create DMA tag: %d\n", error);



Home | Main Index | Thread Index | Old Index