Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1860286ybh; Tue, 14 Jul 2020 09:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIJCJmgclcZmdOh9MX4xyEASnM1NFB+t6BLBFnaRUIdhHMXWsi78RehEqR64valR0LB1fj X-Received: by 2002:a05:6402:2065:: with SMTP id bd5mr5094544edb.67.1594742969525; Tue, 14 Jul 2020 09:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594742969; cv=none; d=google.com; s=arc-20160816; b=qqPa9G/LVupai6SzZgcTPHSmS3VkEtU+5oGibSAiD6c4r6AcKOSvsqyDRJ4VRe7JkQ 7xVQUY7EN9hPkRQZuwqc/JCOmjkAHYoqmx7OZVzlZdQZoDZmjWQVFaqg0Enp1CZbHYfg gOWKorRd++HMtUtCBdmWgZcd0Lg8VvnbKS+/gmmvixgrXnx29YRO/Voz97lUnjA0AkgH Wm1gogHjlfslkM7GwY82K4oimLkEhuwi+qtUrNAKQFIyo6gjjl9wn7l3NqU6ptZGEXiW VjD0f4lzcAEtASvX3agtg7YZ4obdV7VoBdnkMO9eXlNSQo4n6HAhVuA2fEt8E1BX8/+p nxjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=R4pQwmYfvSPBsF4O3BswbbDzQ+scvd3DraVLq9ig/rE=; b=WopwznD8WW8nW9nGr+TerCJp4Na/hAhfNnn09Gbnv7bgYx+5Gd9LG8zXJ1qyQ3MjNd wkIZewCWALiO6PQE4gkcDyZQHfWcaKq8BbGvsKRUQYsz5OafpfQVGEsvEg/itik1uY2D VTLJrthrJjc2DFDiCVg0+txbNxsxC2aAwIeFetvNqUpP6hw31aIPgPbiye7qWL+YhCXZ ZAf+FgbCAQbShuHdoOCV8uGJ5MhIuLIIXRETqDqScCpSQKlH3iKLTySEpiBNWbt+D2up kuTnTPAzmBujRvd7O2PwC467VNDJk5fCJRRIstk4zQr2KPjCAuQBqT6lNmPvTqdMi9WO OERQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="dYPw/QTs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj11si12320164edb.279.2020.07.14.09.09.04; Tue, 14 Jul 2020 09:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="dYPw/QTs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727898AbgGNQIf (ORCPT + 99 others); Tue, 14 Jul 2020 12:08:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:39908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgGNQIf (ORCPT ); Tue, 14 Jul 2020 12:08:35 -0400 Received: from localhost (unknown [122.171.202.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3AE822515; Tue, 14 Jul 2020 16:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594742914; bh=m1sZU8ZEuecg3AdLYhlDX2E1cX3Y8hJyqEV30UQuGNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dYPw/QTslqDwXMkvcuWmgLjUlIp+8O6gOIUKVUY2+TlTa34zQ+zz1U09lJOwQW09S Zs39faJMF1AQ5iw8NUoRb+aOAmoaJq57/pNyE2didK61rX+fg7Upj2jbx+qnSqFSBo krdukl4duieXXuhukMg/55wm4P/zD5q7x9vpVeLg= Date: Tue, 14 Jul 2020 21:38:30 +0530 From: Vinod Koul To: Dave Jiang Cc: Serge Semin , Andy Shevchenko , Viresh Kumar , Dan Williams , Alexey Malahov , Thomas Bogendoerfer , Arnd Bergmann , Rob Herring , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 05/11] dmaengine: Introduce DMA-device device_caps callback Message-ID: <20200714160830.GL34333@vkoul-mobl> References: <20200709224550.15539-1-Sergey.Semin@baikalelectronics.ru> <20200709224550.15539-6-Sergey.Semin@baikalelectronics.ru> <20200710084503.GE3703480@smile.fi.intel.com> <20200710093834.su3nsjesnhntpd6d@mobilestation> <07d4a977-1de6-b611-3d4f-7c7d6cd7fe5f@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07d4a977-1de6-b611-3d4f-7c7d6cd7fe5f@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-07-20, 13:55, Dave Jiang wrote: > > > On 7/10/2020 2:38 AM, Serge Semin wrote: > > On Fri, Jul 10, 2020 at 11:45:03AM +0300, Andy Shevchenko wrote: > > > On Fri, Jul 10, 2020 at 01:45:44AM +0300, Serge Semin wrote: > > > > There are DMA devices (like ours version of Synopsys DW DMAC) which have > > > > DMA capabilities non-uniformly redistributed between the device channels. > > > > In order to provide a way of exposing the channel-specific parameters to > > > > the DMA engine consumers, we introduce a new DMA-device callback. In case > > > > if provided it gets called from the dma_get_slave_caps() method and is > > > > able to override the generic DMA-device capabilities. > > > > > > > > In light of recent developments consider not to add 'slave' and a such words to the kernel. > > > > As long as the 'slave' word is used in the name of the dma_slave_caps > > structure and in the rest of the DMA-engine subsystem, it will be ambiguous > > to use some else terminology. If renaming needs to be done, then it should be > > done synchronously for the whole subsystem. > > What about just calling it dma_device_caps? Consider this is a useful > function not only slave DMA will utilize this. I can see this being useful > for some of my future code with idxd driver. Some of the caps may make sense to generic dmaengine but few of them do not :) While at it, am planning to make it dmaengine_periph_caps to denote that these are dmaengine peripheral capabilities. -- ~Vinod