Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp253990lqh; Thu, 28 Mar 2024 00:22:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbMqz6lyVNvStoyCHn3eb/BuaNAklgxTBLaYe4dn4XBu/Y43KGkY7Vkvvxd3o0n9tnt3n0joouyHcRifMh4v9H3JUmgepJgEiYD6twSQ== X-Google-Smtp-Source: AGHT+IEgEZxBvSCt4awTfO7+5LqG6ghIke0IQqhV/erobw+iP3L94/DOvHu0hODkpuxwhzXB1k6z X-Received: by 2002:a17:906:78c:b0:a4d:fdfc:80f3 with SMTP id l12-20020a170906078c00b00a4dfdfc80f3mr1207108ejc.27.1711610527457; Thu, 28 Mar 2024 00:22:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711610527; cv=pass; d=google.com; s=arc-20160816; b=qnZZ35DQdDooSrUyVBo5GAE3s0vWnIfuPk4PBwcW0qxx+Jdakgu/3dt03ICzAk9p+o 6/JtIZh73tU5JZffYSZUtD1GquKAnvhwKbUXhR1hrRSFjwtjD5fIehVYIZ75+eAO4wKl qDBHJDWzSxPBFFSGRbIg/dil53PuEYuEnO1BSOYYo7fcfYv8OmIY3O1+GsC05k1Ouj8G veh9NR4LLJodAnrRpzsDYjzjOfTsZa6dwO2Wj4HetWdecOZrF+TRvtgr3rzuF0QdG6AD V/ZNI4Bu6PWlIrBH9y8nCWM9r6JX16z8sRkWEFrDtnFkSBcPQayzFGj4MW3qOt81mK3g WUHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=kJpvDpfLjJLSt/OJwCo1YyhZj36N/3VIrucKVgmj2vI=; fh=0C4GTKae8HYQaCUgq993UHi0Z8Mw/YC3rK/3oK/9zH0=; b=ugg4KWsp/2m3ARj9d3u//jB9tddaWbEUNirT0ufGT49T+MOtkgVx49i8aCfOAR2pDd jUjODONO0kMVpGVBClXKgMiCiO0nC6momNuNP5hvFGzz30quGss1dNKJcp2U9NFfxUkt lWTK1AAavAZ4BLMRZF1ctqzg989xdfqAUI/IjwJPyy02AlgHPDBaokml7ULjPigP0Z7N KSRcGYjceV4Xu6JW+f2VdbisYL9g3Ux6R9eSnihNKGUtKjDRdFy2/duxqUI3LKN5s2ex CyOS8e/eGgqk78c4/RXg+2fjQIEMzhopkozF+cOxhL+d4Lga5CZ4rp0bpbZU5CcymMIh v9iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jRTMSL6+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hh6-20020a170906a94600b00a474be4ea9esi424898ejb.1026.2024.03.28.00.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:22:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jRTMSL6+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-122494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 279D31F22225 for ; Thu, 28 Mar 2024 07:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EE3628DD2; Thu, 28 Mar 2024 07:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jRTMSL6+" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 B5677849C; Thu, 28 Mar 2024 07:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711610521; cv=none; b=JwHM2vOAtEujss6Kr3eDfg59q/qWJrEx1lOqpRGO+k34Sa0OBee57dEQTHogbBv5bSmdarZMnbqtkcpd4bmze54EB7/JEzm+moYCqPQ/m1maF+XZdMph2l/xENJ6VwMdM5Gk55jEA5lmiDigp0AQxqb+H/ypDDtpeOcfmMvwHz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711610521; c=relaxed/simple; bh=RDLMounM+oNUUK0WHuzBxzl+3fV0+tqGhQC0XWsFu1Y=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=LyJiKj4Tdsz9H2n+VoS6QzV+8MDe8/G7QfNgXMRJMe+k9dTRPB8EO5y3tOcNE0pG8iWLcrw/NLaY7sObVtCJoZkw8mB/kd/6EM2zgFGKfiXJyDXOwwpaKz29DkrjoTroT6vngZNGtoDxYUXUyt7enSeIe1OCJQ3VETMyNFIkvYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jRTMSL6+; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso310983f8f.0; Thu, 28 Mar 2024 00:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711610518; x=1712215318; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to; bh=kJpvDpfLjJLSt/OJwCo1YyhZj36N/3VIrucKVgmj2vI=; b=jRTMSL6+7tUUWlaxNXyPL+2i+wgVMXk0/zVois6labh4cm6h9XB2YqsRNWU8vdmVJb 8+TeUHvMdV96nNiTBj6R3NLk4RquCZb5zXsWwEKIe8nzftAxe3n9YfIt8U1kBrAkoEc0 Nlb9KaJrG3H2F4fAlaxoIwNXsWhel5i1bpFHDiZR0MMB9MdmKMAIISCJJw1zRQwFZXib hyBFOOgGkPVv/peHCM7QS1kelB7OApwXutTSReUugJVd1goLqs513JdYHUXSZ9vR0epq Ph1HCeznJM6ys17vJRK8i0eLLkskmlHDKoccXamMu8Nb7Ywv3Rr4xxMObmVTwOS6LKWe GugA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711610518; x=1712215318; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kJpvDpfLjJLSt/OJwCo1YyhZj36N/3VIrucKVgmj2vI=; b=fcKxU3JcLQqziMXlk6wA9i0rZ35QlRs67RRA5VoPkN5OqvA8Hd8UyNCpetDpJHvSFx 1v3pXIt0SmmXXhrMlEoEGH0JCWJV+Ov2BDY3ychZ9rgD1oH7B63gNjdLoxNYqVkFbHDs UmhbFas0vQzdi4/EDbXg8o2HCGNETaeTGf6NFCUp9ZYKeYCQxDZ4kkjbYPmI3PiDpIup MGCOU6eHCeX06jNHUAiesazQ/tvLCqbBNpgW1uhSEsi6V6LCrWbvottwaUnQCKWUsTg+ UF2/4nnkWJ6mEWWfYxbXwS7kGr6aF4P2fR7fyXYqUJDlnjeVvUE6exHfI60f5I7pBVDQ GUYA== X-Forwarded-Encrypted: i=1; AJvYcCXMEAj8bgFSrPga6kSTbtHiuhHlQtzdrZZpKQN+9URr/AmG4ToDIdb2LKGAVW90MsfZNpJ07J0zYRpKXUnXNbdXLSRHcwJ1CHXLejbY X-Gm-Message-State: AOJu0Yxo8TFHFJgPKYGT+ddiQR3rKDwLAY1MAEKR8DFiFmdZuKlFxwGi YA4HSCdqrgPtuj/dTr2TXCNj6/LGUJ8VanFlozcS+Gq2diXDyPAk X-Received: by 2002:adf:ab1e:0:b0:341:c99a:8de2 with SMTP id q30-20020adfab1e000000b00341c99a8de2mr1187407wrc.11.1711610517815; Thu, 28 Mar 2024 00:21:57 -0700 (PDT) Received: from giga-mm-1.home ([2a02:1210:8690:9300:82ee:73ff:feb8:99e3]) by smtp.gmail.com with ESMTPSA id dd7-20020a0560001e8700b00341c6440c36sm947564wrb.74.2024.03.28.00.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:21:57 -0700 (PDT) Message-ID: Subject: Re: [PATCH v9 09/38] dma: cirrus: Convert to DT for Cirrus EP93xx From: Alexander Sverdlin To: Vinod Koul , nikita.shubin@maquefel.me Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Date: Thu, 28 Mar 2024 08:21:32 +0100 In-Reply-To: References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> <20240326-ep93xx-v9-9-156e2ae5dfc8@maquefel.me> Autocrypt: addr=alexander.sverdlin@gmail.com; prefer-encrypt=mutual; keydata=mQINBGWpGj8BEACy09IxfduHTzAdqKkf3SmGIHIEquHWHIXqgVIoZo/ufP8mIpsWYwFKP9gsCvVvNNugtK8YPN92lbHol35nfZiXLIp16ASRQXYFtBjXj4GAVjUPjaTkQbcedIgD2nEZ/HQSiohfnUSS0YmxI0UUJmZFulwQZil6OmPVbbQoda8/In5h/wNRo6y5vJreRhsjqcP5LckLRov3t+jabUzn0/1twHNO0SnI508dXenEhQcBX7Wns+JfwRqO8jxBK1P3DntW+n0OJ8DkjSMJjm0zk9JtY28WK332Vpq8smZxNDNCfs1YtRMzfEEZKRvxsSMzTxri/cw7VXJa7m138LlyPBkXizjAKqad/Mrthx4ambsWuRXyjklYOBYqMEAdlZNLPQnhnIICFwkJ/lnLE8Ek6Dh0NYl1HpsOyvu1ii7VPEXHLMGTKFmFmWtrmCUrHIBrAvStMJ2jIRhEyCGDpf6f5dfKNOb3GWRtX36326TDOa2eXWqaTQEPKWRSUwhC3f3j/C/o/vj6bDHQ8ZsNcKYxwtSoh+elHT5xtHOMvPBP6gavgZRDnH6wBSHWnXYxyOmZPKr2NuhMwhEyhpvkEq5zW6Z/hp5POzZ74GNkIKB5/FpETobgoV/XB2HMnlIUAJE2RYRYwvbgIkKTJxFD4FIIP2DVt/7cT/8ry5Nhe2fouscuDQARAQABtDFBbGV4YW5kZXIgU3ZlcmRsaW4gPGFsZXhhbmRlci5zdmVyZGxpbkBnbWFpbC5jb20+iQJUBBMBCAA+FiEEYDtVWuq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gKmy6lviHFf0qyJsyVpoGonK1tjRTeh c1oMKY+O7/JqOhEp/NwI+HI3THVgagrBPOjbiUA3q/0FW1puGsOF69gZlFA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 > >=20 > > Convert Cirrus EP93xx DMA to device tree usage: >=20 > Subsytem is dmaengine: pls fix that >=20 > >=20 > > - 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 > >=20 > > > From now on it only supports device tree probing. > >=20 > > Co-developed-by: Alexander Sverdlin > > Signed-off-by: Alexander Sverdlin > > Signed-off-by: Nikita Shubin > > --- > > =C2=A0 drivers/dma/ep93xx_dma.c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 239 +++++++++++= +++++++++++++------- > > =C2=A0 include/linux/platform_data/dma-ep93xx.h |=C2=A0=C2=A0 6 + > > =C2=A0 2 files changed, 191 insertions(+), 54 deletions(-) > >=20 > > 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 [...] > > =C2=A0=20 > > @@ -104,6 +106,11 @@ > > =C2=A0 #define DMA_MAX_CHAN_BYTES 0xffff > > =C2=A0 #define DMA_MAX_CHAN_DESCRIPTORS 32 > > =C2=A0=20 > > +enum ep93xx_dma_type { > > + M2P_DMA, >=20 > 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: =E2=80=A2 Ten fully independent, programmable DMA controller internal M2P/P= 2M channels (5 Tx and 5 Rx). =E2=80=A2 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. > > + M2M_DMA, > > +}; --=20 Alexander Sverdlin.