Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6750511rdb; Fri, 15 Dec 2023 07:26:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4pc67pxxa8rSea41cm6qLbdPVU0/fmTyv9uDLOmeGUtIRuisQW4hyP6pi88Hg7ky+W7CX X-Received: by 2002:a05:6a21:339b:b0:18c:8fef:22d3 with SMTP id yy27-20020a056a21339b00b0018c8fef22d3mr6104314pzb.34.1702654010397; Fri, 15 Dec 2023 07:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702654010; cv=none; d=google.com; s=arc-20160816; b=d9/MOBrHlH7tR1wAk4fkc34KLqFtab45w6eMoiYAC+sU47ut3l3tRnAULxM2Z7KpEr 9ZcdYycqJ8jnCmXXs/SUy65Nb60L72P9GbWUdoUtF40xuQUpaMemGse4MzbcIGmBUiP6 gWmbibNh9qDtCiuNSqzu8QHSo5u05kAznk3ixlY/c4+skQ8/EAIN64L+Vm2242GfBJTs cePc/uIAOHlysO3qWER3VjWVie1Z7mh2/8Mwr4CcPJKOOktNu5ZECpyUkIBf2qW3mnN5 /TpWhmAJTdB70bqfEsqj12qheA6K+pUA9ls7bPMHnf3uzNYcESZ2ZknF2aPd+0apImFw NE2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=C1OnF5rGFzI5RvYpjVRPlVSvXceBOIEFaHqDyOjiYTA=; fh=Lpqcnd1ftwj32oe8cSUiAV4lSnI3GwvlVBnHCuwq2YI=; b=Hy68VGufe4/Ce2cM0vKMrXK/Xr3VaCMG2aKSWW2M+G+qj+BUeHR9rBI+ECwy6QzVKu DXfdH/QH5aT5B6lZPETyODkilB0B2k3LlOdA5uQWlKacxDfqEyhRNhGcR/LDAU/KKARN tI6GiyyFx0Y0oTGo/Vfz4FAcdenjtOyqEtYIp0GQiwnCkQepCoBiYdP7F6XBxb0n62nG WSF/J/iDa93CBttqphAjd41dpfbNp5MiqChjZc39Og2NFeZjQOqFJjXdu6oCAd87WXhl faW0NPx0j3BLf9y3YdVUXj46YBTXP2noZd9X6i341A1q9sDfLZzCG0tf5xpxYgvqnT6K 40Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f21-20020a056a00239500b006cb8cf06613si13129807pfc.2.2023.12.15.07.26.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:26:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C6D9B21964 for ; Fri, 15 Dec 2023 15:26:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5786E37179; Fri, 15 Dec 2023 15:25:52 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B552537169; Fri, 15 Dec 2023 15:25:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-6d9f9fbfd11so627152a34.2; Fri, 15 Dec 2023 07:25:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702653948; x=1703258748; 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=C1OnF5rGFzI5RvYpjVRPlVSvXceBOIEFaHqDyOjiYTA=; b=QemHuBOsmABUdqiwWTfxBpnCky3iNOklVT3DNVOP7hwiq1iyPgNFm87M9XQukIi0Mx HbPx/V2tX2I0DMnmSKJOx/sKKbVyAcjzM1w80wH+libiOPD+XQn87qoZQ7pokydEt6/m WbnamMc3YzD7EVc2dpVUyjL3QhGl1vAxNd3TIHQsGkpPMHX1jnddw1NHogu7kWkNpsb0 iGnlfAoqrH+5DwaNnazdyQPUClRHg7ozQjd6x8WWlUH5iYNd+Bi9AZlczOELu+I12zn9 HvQqOpUJOiRzPCHetnhsCuYf6er6zIEoLcDH8PEqIiShvGzi01N3UdcuPY9pj4bWkn/n MCzQ== X-Gm-Message-State: AOJu0Ywf0+J7ryMhK1KuCHgIuUx7hKOCJd/5Zj/zz1u+Jem5zOeKusjn yuxymEIA1jyjiJO7fZ6RwQ== X-Received: by 2002:a05:6830:1517:b0:6d9:f68e:ded7 with SMTP id k23-20020a056830151700b006d9f68eded7mr11507380otp.64.1702653948485; Fri, 15 Dec 2023 07:25:48 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id d16-20020a056830139000b006d874fc2555sm3671547otq.26.2023.12.15.07.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:25:47 -0800 (PST) Received: (nullmailer pid 3996339 invoked by uid 1000); Fri, 15 Dec 2023 15:25:46 -0000 Date: Fri, 15 Dec 2023 09:25:46 -0600 From: Rob Herring To: Robin Murphy Cc: linux-kernel@vger.kernel.org, Vineet Gupta , David Woodhouse , Thomas Bogendoerfer , Suravee Suthikulpanit , Dexuan Cui , Catalin Marinas , iommu@lists.linux.dev, "K. Y. Srinivasan" , Gerald Schaefer , Matthew Rosato , Russell King , Will Deacon , Huacai Chen , Jason Gunthorpe , linux-acpi@vger.kernel.org, Sudeep Holla , Christoph Hellwig , Lorenzo Pieralisi , Albert Ou , Niklas Schnelle , Paul Walmsley , linux-arm-kernel@lists.infradead.org, Jean-Philippe Brucker , Wei Liu , Palmer Dabbelt , Haiyang Zhang , Marek Szyprowski , Joerg Roedel , Lu Baolu , Frank Rowand , Hanjun Guo , Rob Herring , devicetree@vger.kernel.org, WANG Xuerui Subject: Re: [PATCH v2 7/7] dma-mapping: Simplify arch_setup_dma_ops() Message-ID: <170265394575.3996198.15248667149121379629.robh@kernel.org> References: <7e6af148e0df9a10b51cd60234ec6b35f7d4cc20.1702486837.git.robin.murphy@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e6af148e0df9a10b51cd60234ec6b35f7d4cc20.1702486837.git.robin.murphy@arm.com> On Wed, 13 Dec 2023 17:18:00 +0000, Robin Murphy wrote: > The dma_base, size and iommu arguments are only used by ARM, and can > now easily be deduced from the device itself, so there's no need to pass > them through the callchain as well. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Robin Murphy > --- > v2: Make sure the ARM changes actually build (oops...) > --- > arch/arc/mm/dma.c | 3 +-- > arch/arm/mm/dma-mapping-nommu.c | 3 +-- > arch/arm/mm/dma-mapping.c | 18 ++++++++++-------- > arch/arm64/mm/dma-mapping.c | 3 +-- > arch/mips/mm/dma-noncoherent.c | 3 +-- > arch/riscv/mm/dma-noncoherent.c | 3 +-- > drivers/acpi/scan.c | 3 +-- > drivers/hv/hv_common.c | 6 +----- > drivers/of/device.c | 4 +--- > include/linux/dma-map-ops.h | 6 ++---- > 10 files changed, 20 insertions(+), 32 deletions(-) > Acked-by: Rob Herring