Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 _bus_dmatag_subregion is always EOPNOTSUP...



details:   https://anonhg.NetBSD.org/src/rev/3e96cc96f910
branches:  trunk
changeset: 1029063:3e96cc96f910
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 20 13:58:58 2021 +0000

description:
_bus_dmatag_subregion is always EOPNOTSUPP for !_ARM32_NEED_BUS_DMA_BOUNCE
No need to check {min,max}_addr. Compiler did the right thing, but...

diffstat:

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

diffs (30 lines):

diff -r e3eba728bba5 -r 3e96cc96f910 sys/arch/arm/arm32/bus_dma.c
--- a/sys/arch/arm/arm32/bus_dma.c      Mon Dec 20 13:19:09 2021 +0000
+++ b/sys/arch/arm/arm32/bus_dma.c      Mon Dec 20 13:58:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.133 2021/08/30 22:56:26 jmcneill Exp $   */
+/*     $NetBSD: bus_dma.c,v 1.134 2021/12/20 13:58:58 skrll Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2020 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #include "opt_cputypes.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.133 2021/08/30 22:56:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.134 2021/12/20 13:58:58 skrll Exp $");
 
 #include <sys/param.h>
 
@@ -1889,10 +1889,10 @@
 _bus_dmatag_subregion(bus_dma_tag_t tag, bus_addr_t min_addr,
     bus_addr_t max_addr, bus_dma_tag_t *newtag, int flags)
 {
+#ifdef _ARM32_NEED_BUS_DMA_BOUNCE
        if (min_addr >= max_addr)
                return EOPNOTSUPP;
 
-#ifdef _ARM32_NEED_BUS_DMA_BOUNCE
        struct arm32_dma_range *dr;
        bool psubset = true;
        size_t nranges = 0;



Home | Main Index | Thread Index | Old Index