Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp762903ybh; Sun, 12 Jul 2020 23:53:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxToKHEJG7KwaoS/Pe3vhanuSkUUj/aJP5LN3gVwOY5A94tKjeTV6mfwnLwE+0UP/C2lz3W X-Received: by 2002:a17:906:a081:: with SMTP id q1mr65034626ejy.499.1594623233440; Sun, 12 Jul 2020 23:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594623233; cv=none; d=google.com; s=arc-20160816; b=dQAELbyR64TMogaTzSpRPVqR4OeDeBY5HSBeW4571CLD2M4L1u7aePOH0PElbpu6gU CML1u6HLEvfLgNoyRLSAQjq2DNCExqOjJR3Pqr9Aog/smXS5S4SAKB8z1ILyXi8hnmNC kQ8lDJXzpFj9T+3zDNWAliGPO/30UX+HqKrr/O7Vyrd8pRXMveW+aDqFxeUJRuvT6eAL UnrKc8ko5jZDAscpYj3dGtJvu+QTG6Cp1R6lV5/T/yP7MLPy2kahzbmv/L+ydNn7Z2I4 csWTsndlGnpBOs3/FJ6x9sRugrfdvJSQi3D4xjykVk88OQtwrI1fERTj254EwN+Z7MhH glkg== 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=rjRJwYbrbmoVe5gz1TLIQiZWSKQoVImVD1+a1g6BDYM=; b=qylGtg2rhhaVrAciRIlQAWA6MOTdBn4Uzm7v5k1/YtO6X5zEyoUazm3pf+xay95jGo klXA6Klv8IKQDPgM4yIfPW1A/Lia5nxeJrVvpYbSTlWdvqfZpcF3kYOvfivtXW1Anp+R bdSu/fIAHFlzbM3hmuIj1LJAllsW1yx2pyXdo0PmcBRKQoosQIpjcCcXPfcQwyQVgBen VYH7nSjRQN+NPsdc5yNq0S+Aj23OPm7o2jgozBed0jJ59iUPKSYfMCuNZ7d81GaJPe4/ j9dk/eyIM/xepZXzUvI2bhQNsLPAg2b6Ts9/83sr28CHO19BGde1dnvAZjVpGbyO4c3/ ecKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0u/PPKPV"; 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 i13si8072973ejy.649.2020.07.12.23.53.29; Sun, 12 Jul 2020 23:53:53 -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="0u/PPKPV"; 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 S1728972AbgGMGvg (ORCPT + 99 others); Mon, 13 Jul 2020 02:51:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:36606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbgGMGvg (ORCPT ); Mon, 13 Jul 2020 02:51:36 -0400 Received: from localhost (unknown [122.182.251.219]) (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 EE78920663; Mon, 13 Jul 2020 06:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594623095; bh=eICm5z1aVZzbICki22PDS3qQwA4tGgtSA08FRFspzSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0u/PPKPVHJrtXQ1BQ9UECn/8iSxQKll6GDhkWKShES2uESX6/+sOpgtEBloL5Oo1O H7Qe0n1nCHNokb7cv+f3Gv4yg6+lVdhaQwZ4TtKlV5LyCrtRdy0OnP0k5kGvd3eA4y ZbAMNdnelKHkzhPwyE/PCcwOXoCqldskaj7Y/veQ= Date: Mon, 13 Jul 2020 12:21:31 +0530 From: Vinod Koul To: Serge Semin Cc: 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: <20200713065131.GG34333@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710093834.su3nsjesnhntpd6d@mobilestation> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-07-20, 12:38, 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. Right, I have plans to tackle that during next merge window and have started changes. Thankfully slave_dma can be replaced by peripheral dma easily. But getting that in would be tricky as we need to change users too. -- ~Vinod