From mboxrd@z Thu Jan 1 00:00:00 1970 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-Google-Smtp-Source: AGHT+IFsgHE029QXbOE4x52loz8JfsphgGoxGT3Z/OzVbTeZDrjy5prKIU2NDeJ5VZf7w9GpT5FMig== 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