Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp256345lqh; Thu, 28 Mar 2024 00:29:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW63QDZ4jPHU1KKydOnBh2EWqanpUMJslUJhzKhpl3MQcaPb86hg4xuHDgm/PyNR1XVT0GMjIBSrsatQXT0ald99rnHS83DEhpf1NwHFw== X-Google-Smtp-Source: AGHT+IGaFMttksUYFdPSJT8pUtrcaD7YwAZpiqREZJBsPKwkLyEMwfb2eGM8o/x0wR7SPzYuU1at X-Received: by 2002:a05:6a20:bca9:b0:1a3:70a3:67d6 with SMTP id fx41-20020a056a20bca900b001a370a367d6mr2242068pzb.1.1711610979321; Thu, 28 Mar 2024 00:29:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711610979; cv=pass; d=google.com; s=arc-20160816; b=yqO0uRMGXyz0sxyfILtsSeQCl7SRpy6aCOyGBhixS9bKx59aUKlgjrkz5eknSb/doX 5xJkHtgiVY+7QZLXiNzj9F449pdUhW69GP9ekZa7Wd2G3bG+TCfC4zkHEBYoM5et4+TM +j7qerL01SqEA1OfInFBMxmOQiE3RqZHscNcLxiwSstKwceZSoseZrUiBx/GhtPNaPpJ 7X6tW5ck7P19K2TMqyIbtnJenkzyt0stp4SlEu4eJEcM8b7ooysEYdF6nPZwklYQKL8n 918dvn4JzK8PQE+aBrf6xNNq+9Ji3YoL+xyPK0uazWVTcZpw88x4QNIEtCq6SiaCeZH4 Dymw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OUl6x2e2ykKeZ/+jSd3htssBZUdlc6q4b+b7nIaMNaU=; fh=oQn1it+7gd0NqSsdvWob5EAwHAnJ5ghgyr5IprC3pbY=; b=osZMgrKJfkuXEj3fdpumSJt44siDHweJAlHgDJOxTyQUpAO6v5WxLj4RONeHDNfJCT 1pO8QOuq1cb3WDeKV6CqIrvbtWnkCpu1KwdgAtaLeNPfUE3WiLwdhRwR8wCyAx+DbQZh 0LeaHEwjDFj9lrZEivcicCBCEwoMgKFqKd93oD/qE83+TUlpo4DN+34RpygOU3tY+w0g PzcHT/gFN10+R/J5SDzQnfPGIPFcElFS8nvxvCYIAIW8gt58NhZh6f9HkMgNhEnF7nem pEKK6uT49uuLU+fYRP1faSnFkR8UiSK9+sO49zbNZPv8YxtGwX8kymTwUCvOgk6fBuF+ eT7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bOOytuCo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122502-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122502-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. [147.75.48.161]) by mx.google.com with ESMTPS id pm16-20020a17090b3c5000b002a090ff90fdsi1091720pjb.10.2024.03.28.00.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:29:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122502-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bOOytuCo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122502-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122502-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 112D3B22C2D for ; Thu, 28 Mar 2024 07:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12C4651C27; Thu, 28 Mar 2024 07:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bOOytuCo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 369A413ACC; Thu, 28 Mar 2024 07:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711610869; cv=none; b=FhadZ13hDmMdHNNU5KXy6SIkErIlidNfEZ/vADSqJI7HnnEGgfpvdfU5Hy0Ozw5+AJsOuPhcod8nUxdBu/Yk7CKMKQ/Wqo956wTQG/3OPy6OhqCpOGHtuNbYHpyqZVnnLXNOF7Gp4iDIwqd62j7ORTKlJlBt5uHRedq8NE3rylw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711610869; c=relaxed/simple; bh=nEcoLKbWbbnmmhagJLDz5mxJHGXM7Y7imMxfavzWVFY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IwmXvukmimi9hXXNE7lt9NRsbBnYpQ6Kji7CJAZHIZrguA/BH4tbD9t3+UqH0CK6BRU7PHJTsfap4M7WwUuMwd0JBXKUin/WLjwb4EcpodHxKBCQ9MupMSn3Fd7FD0MqUP+9xKpfqD8ntHIHUAMjuFto+mYtu2Ff3LHwv1PRXi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bOOytuCo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EA1AC433F1; Thu, 28 Mar 2024 07:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711610869; bh=nEcoLKbWbbnmmhagJLDz5mxJHGXM7Y7imMxfavzWVFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bOOytuCo32SXKvu9CCqI+7WhrAn2GjGLDKCkhHBsc/+K9K6bQfvSmDOyxmt0SpL1z RV7KMOXCBbORlNujIal2rut2yUo9+0IOMtLV2mCVYiWTz0pjISqu2MjWyKaUzoFpzn 9uhBm/ZeoOJh2jsWhG58+lZgcByTjkiECcty95nVDDVhCYFFpLvtcXlAi62ynhRiLI wlA3n9FFGheMjLsW18lxQgYE9pFzJAKEPsbuJN2VlnbCvIj6MbJG85x1g2e6lEvjpn BCPIekYGrm3BwT0Q+Ek7p3BDmVgYhoRtAH6Scw71YALKcTzFltY7V0doAXdkXx6yxF d/95lCjhtV7Ug== Date: Thu, 28 Mar 2024 12:57:44 +0530 From: Vinod Koul To: Alexander Sverdlin Cc: nikita.shubin@maquefel.me, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH v9 09/38] dma: cirrus: Convert to DT for Cirrus EP93xx Message-ID: References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> <20240326-ep93xx-v9-9-156e2ae5dfc8@maquefel.me> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 28-03-24, 08:21, Alexander Sverdlin wrote: > Hello Vinod! > > On Thu, 2024-03-28 at 10:01 +0530, Vinod Koul wrote: > > On 26-03-24, 12:18, Nikita Shubin via B4 Relay wrote: > > > From: Nikita Shubin > > > > > > Convert Cirrus EP93xx DMA to device tree usage: > > > > Subsytem is dmaengine: pls fix that > > > > > > > > - add OF ID match table with data > > > - add of_probe for device tree > > > - add xlate for m2m/m2p > > > - drop subsys_initcall code > > > - drop platform probe > > > - drop platform structs usage > > > > > > > From now on it only supports device tree probing. > > > > > > Co-developed-by: Alexander Sverdlin > > > Signed-off-by: Alexander Sverdlin > > > Signed-off-by: Nikita Shubin > > > --- > > >   drivers/dma/ep93xx_dma.c                 | 239 ++++++++++++++++++++++++------- > > >   include/linux/platform_data/dma-ep93xx.h |   6 + > > >   2 files changed, 191 insertions(+), 54 deletions(-) > > > > > > diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c > > > index d6c60635e90d..17c8e2badee2 100644 > > > --- a/drivers/dma/ep93xx_dma.c > > > +++ b/drivers/dma/ep93xx_dma.c > > [...] > > > >   > > > @@ -104,6 +106,11 @@ > > >   #define DMA_MAX_CHAN_BYTES 0xffff > > >   #define DMA_MAX_CHAN_DESCRIPTORS 32 > > >   > > > +enum ep93xx_dma_type { > > > + M2P_DMA, > > > > Is this missing P2M? > > Not really. It's not the most obvious one, but anyway a way to enumerate > two types of DMA engines: > > "7.1.1 DMA Features List > DMA specific features are: > • Ten fully independent, programmable DMA controller internal M2P/P2M > channels (5 Tx and 5 Rx). > • Two dedicated channels for Memory-to-Memory (M2M) and > Memory-to-External Peripheral Transfers (external M2P/P2M)." > > Now the confusing part is that this "M2M" engine is actually used > to transfer to and from *some* devices, like SPI and IDE. > So both engines are capable of M2P and P2M, maybe Cirrus has named > two engines in a sub-optimal way decades ago and this is now a bit > historical naming. Okay, thanks for clarifying (might be worthwhile to mention this in comments) -- ~Vinod