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 64436D3E781 for ; Wed, 10 Dec 2025 22:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=5+47ytKZ8UnkzfYaCWO7JhYpwglNA62dl7Bxd4dW/ss=; b=qyHwK8CC87ctxy C+vAwALjKt7+GSwWb/r1NUeupwpW9EHOq24eE1n/bh6IF3IttU/aw8eT/rLrSn0JcYdf5po0UAWxM Bhk194eUldqX7EDN1gATeSJQfYyT+g3OGOUVCmC7PX8mlm+F/+cTyR+y+St4X1aanEqJPnyKuL1uT ERjOUTCznRbP3EFN+OpMGvHhZu8uXRwJrgOdJ/9k8Jd4ZMtct0OA9Xc7WwccIipwBk3W2N1TDLYrm nD+E+KUBUk7VQeR48YKvJ2ADViYWH7MG/FXrmxOo761QNsS8Mh7NABIR4YBW5XmYfiHCxJU3XmiDq bCd7sPIv0tKWYAyGWs8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vTT63-0000000FxBO-17Qz; Wed, 10 Dec 2025 22:55:47 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vTT62-0000000FxAo-2Uu5; Wed, 10 Dec 2025 22:55:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id CA73B6011E; Wed, 10 Dec 2025 22:55:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61867C4CEF1; Wed, 10 Dec 2025 22:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765407345; bh=PLadVEoeY0hC43TAV5onwNBUDm6mGg+NAew2uNOTqz4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=j5H4a8R2dmy5EQ5NgEAM5ZOX9qKNGt4t0kpMwZOPmJG/R/u0HvKJ7oB+NOEPfFg5s d0ihiuYSi0voOpdZ1cp2/NnCCP9mwrcVXZ0hlsDA0DvNA1FOtgmbRCGJ0vk0zEnQ6q hAyFoGDt4ZIGJhA4G4DDZnuH6GKECDX8k1mctL63Ch8M1YvzurGfJt+4oqX+PGOfa6 +mpk6a7gpMF109MaYL3YBAarAg8R1K4AQv2mhN8od8A/a7o57Als7T7rx5PUZg1Ctv u2PmGE/O3Hzlpu+nkGcec/Q6sTIxDdqG+tHlhYUyEvI8ggmHbVxU82uRk8uyXbjIF9 MQsjca9LE5NiA== Date: Wed, 10 Dec 2025 16:55:44 -0600 From: Bjorn Helgaas To: Frank Li Cc: Vinod Koul , Manivannan Sadhasivam , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Koichiro Den , Niklas Cassel , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: Re: [PATCH 1/8] dmaengine: Add API to combine configuration and preparation (sg and single) Message-ID: <20251210225544.GA3542977@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251208-dma_prep_config-v1-1-53490c5e1e2a@nxp.com> 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Dec 08, 2025 at 12:09:40PM -0500, Frank Li wrote: > Previously, configuration and preparation required two separate calls. This > works well when configuration is done only once during initialization. > > However, in cases where the burst length or source/destination address must > be adjusted for each transfer, calling two functions is verbose and > requires additional locking to ensure both steps complete atomically. > > Add a new API and callback device_prep_slave_sg_config that combines > configuration and preparation into a single operation. If the configuration > argument is passed as NULL, fall back to the existing implementation. Add "()" after function name. > Signed-off-by: Frank Li > --- > include/linux/dmaengine.h | 64 +++++++++++++++++++++++++++++++++++++++++------ > 1 file changed, 57 insertions(+), 7 deletions(-) > > diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h > index 99efe2b9b4ea9844ca6161208362ef18ef111d96..6c563549133a28e26f1bdc367372b1e4a748afcf 100644 > --- a/include/linux/dmaengine.h > +++ b/include/linux/dmaengine.h > @@ -835,6 +835,8 @@ struct dma_filter { > * where the address and size of each segment is located in one entry of > * the dma_vec array. > * @device_prep_slave_sg: prepares a slave dma operation > + * (Depericated, use @device_prep_slave_sg_config) > + * @device_prep_slave_sg_config: prepares a slave dma operation s/Depericated/Deprecated/ s/slave dma/slave DMA/ to match other "DMA" uses