From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8ECCC35274 for ; Fri, 15 Dec 2023 15:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5JdFXQ+LuDHCsdnz33YK9JxB5oin9DgQJpf+jgdwasE=; b=liMEgILRXX0jSO LBAjweYfdb17F/85+Jfv5s0d+xRLJWH84SLHTtgUspCZikEIOaIE1nO+qdi3FZ/ORZF0+roU8feU6 wktnTvjzDNJfX3BexNoRvh2OUY4gQUHFUh3214Vgxbe8mJuQCOcyz+kAFSF4w26qkR3Zyi2ncOk8v fNBMJ5qI03Bas6xB26n6bdYSt+DZZNimUk4yy75bQotaH645Av+1bYSURDirRkHCJKCRtyz2zPkap uEuBDQpwALAN9SEtpwjbxhZuPEktkZPt3W7bCxZQMxeMxY988hAi9uzqIjLFe1NFH6WT8AExGs/Xj r/7iotzuXGgxLUTCJNEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rEA3j-003jD6-32; Fri, 15 Dec 2023 15:25:03 +0000 Received: from mail-ot1-f42.google.com ([209.85.210.42]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rEA3h-003jBF-1y for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2023 15:25:02 +0000 Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6d9e756cf32so662478a34.2 for ; Fri, 15 Dec 2023 07:24:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702653898; x=1703258698; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=o1KxO6deZnelp4zRShdYeXlRDuUBsn1JgcYXM2Knxlg=; b=KGC3Tf4rJLsBScUhn5eyhPY3PWCCYBWjAff8sJHiPigvpJ+U1nwrFcVaZZpmgAjF2J bAwQs4ub3ULd07LuRZ5giaLuRqv3c8KjepMMIf5guW1c4hmDErWJuMmkWCrKlGeiMjnY 4W/Zrw4xENKPkkctySIPAtxMRjcSZDlStKMN8A+OLRkVlzcF+RZQ7gYo4X1o2ul7A2VC MVB/e2Q9jFa0wD0kd/3HgCsdXxXlqUegdAyDeMhiJ/9sITyZD+kY+wCiZkDEdVMkcXA3 BeDvLuFb/CgI4P1YLS6tR6XCPZpqNHrYHZHcIt4zaG0yI1W5GCqpdan+L8mI9ux6Rutk 4hwQ== X-Gm-Message-State: AOJu0YwCkwck+WqM2mNNJvOCKwM+rKEE4CIKVYfELXuGCi3ODWU471Gx iA8woY22/pmQESro15BXHA== X-Google-Smtp-Source: AGHT+IF3DdJW74bPK38SUphJlKZ+n/hKitiokKcgMWBUN3B1WSrWQktRoS8P3zNv/uR0dgu1UFGlXA== X-Received: by 2002:a05:6830:1107:b0:6d9:f66e:f557 with SMTP id w7-20020a056830110700b006d9f66ef557mr11375830otq.8.1702653898434; Fri, 15 Dec 2023 07:24:58 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m18-20020a9d6ad2000000b006d7e23c58b6sm3614287otq.38.2023.12.15.07.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:24:57 -0800 (PST) Received: (nullmailer pid 3989129 invoked by uid 1000); Fri, 15 Dec 2023 15:24:56 -0000 Date: Fri, 15 Dec 2023 09:24:56 -0600 From: Rob Herring To: Robin Murphy Cc: Albert Ou , "K. Y. Srinivasan" , David Woodhouse , Sudeep Holla , Will Deacon , Paul Walmsley , Palmer Dabbelt , Frank Rowand , Gerald Schaefer , Jason Gunthorpe , linux-arm-kernel@lists.infradead.org, Rob Herring , Jason Gunthorpe , iommu@lists.linux.dev, Huacai Chen , Joerg Roedel , Dexuan Cui , Vineet Gupta , Jean-Philippe Brucker , Lorenzo Pieralisi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lu Baolu , Niklas Schnelle , Wei Liu , Russell King , Christoph Hellwig , Hanjun Guo , linux-acpi@vger.kernel.org, Suravee Suthikulpanit , Matthew Rosato , Haiyang Zhang , Catalin Marinas , Marek Szyprowski , Thomas Bogendoerfer , WANG Xuerui Subject: Re: [PATCH v2 4/7] dma-mapping: Add helpers for dma_range_map bounds Message-ID: <170265389548.3988948.144759236279201432.robh@kernel.org> References: <16d3e9100cd4a4a397641df963f416cc7f70cc4c.1702486837.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <16d3e9100cd4a4a397641df963f416cc7f70cc4c.1702486837.git.robin.murphy@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231215_072501_660337_035F79A1 X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 13 Dec 2023 17:17:57 +0000, Robin Murphy wrote: > Several places want to compute the lower and/or upper bounds of a > dma_range_map, so let's factor that out into reusable helpers. > > Reviewed-by: Christoph Hellwig > Reviewed-by: Jason Gunthorpe > Signed-off-by: Robin Murphy > --- > v2: fix warning for 32-bit builds > --- > arch/loongarch/kernel/dma.c | 9 ++------- > drivers/acpi/arm64/dma.c | 8 +------- > drivers/of/device.c | 11 ++--------- > include/linux/dma-direct.h | 18 ++++++++++++++++++ > 4 files changed, 23 insertions(+), 23 deletions(-) > Acked-by: Rob Herring _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel