Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp245632lqh; Thu, 28 Mar 2024 00:00:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU57xSgu1rKDQKaUstfPRo5MHjrdrGS7lrnr2rUJJ37rsgrs2ZEJkefKClhGPLJOvQmgmO/kJDZ8F2Z3C2VwnztKe80EMzPYEZ2m3Zyjg== X-Google-Smtp-Source: AGHT+IFiF6Iy+gYmVR6qm4L/wV9AG+Kg784h0akxIQuoa5qIasI9nYObBWOKQsFWOo6O+gzl7BcV X-Received: by 2002:a05:6830:13d1:b0:6e6:a6c0:e9d4 with SMTP id e17-20020a05683013d100b006e6a6c0e9d4mr2124703otq.1.1711609231937; Thu, 28 Mar 2024 00:00:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711609231; cv=pass; d=google.com; s=arc-20160816; b=XExxE6/ndMtoclc35cdYi/cw30rTyqbKmLMK4bHgGlTkz4OeahsPzIQZPRfUxIk4DA TSxj0jUUGouv2IDUf4eWTsV1Hs4iayveN8EVI/iIJwP6Q8mL9BOfiOKvmJ4XqAcYtQfQ m3o06aJLds4L6AFg15eYGEMWVPQ7+HdWu8va4+5pb4n5hPZN2UthlMhF7zDsJU5f+13+ aGfU1RZmEUnaV4uNYhLtqS9R7//XCGSqimQ+n2FeCu+udV4py3uFfAv8gZFHR+uh4iN4 T+Pf4GvJH4FfZRnjHTuNdUnwRezV2AGgztzEeR7Vb4XxEpipjqu/7WeNuyaW60xVFbGT sxCg== 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=+Gw/CxA2/id4s/PnjiC7GhbbN/6K62gqnl0/ttHTZWc=; fh=N+C/NlSEW2lPSr02W5o0H404Cf9kUMnAuUQ+HPl9Tik=; b=wsdUJbnpBhVsmimQ3VqCEU8dbyALUDClGHshrtYRahMxofS1SDqKfWODMMz+SMC/Pp Cdj/zTJmtGlissXd533WjTLFwkeXEbfdqvn7vifwgav8dxwc0joMMCxOBlBmvJKQYNlL PXnmzM5WBzuUTqCp+20brdVBTJpZ7vv71JXUjR5vyWOSpJAJbqUOoDHqkTb1OGHZ0xJ4 mH1ABC7DVfeBFe9Bgepc7663GX23zOpC+3W5PMhILg8Bh2KelzkRvVjktc2vzVXkiDay xFjxOfl73QT5WzFrQCAkTsbkZXSSGPksVBxXD8sQSRKDmF2L21XqjXm6TZBUnqxLl65Q 4Suw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCe9NFQN; 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-122484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122484-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l10-20020a63da4a000000b0058974d3c296si833051pgj.815.2024.03.28.00.00.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=aCe9NFQN; 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-122484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122484-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6914E28EAF8 for ; Thu, 28 Mar 2024 07:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F057550263; Thu, 28 Mar 2024 07:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aCe9NFQN" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 4A45E50251; Thu, 28 Mar 2024 07:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711609224; cv=none; b=CznBaNFoNbSI4a3ht+eGbMFKPmw9OcZ11JbSboFagk2lj0kag8vv0VG8Wpu8ieJQ4at4WjuqU50jaYJ0NFq61YZFgWTmrdRX3+pqgfG7CrGDMRlBxkN1l93mwao8RpVdj3kaFhOpGWr4ChoXImzRt4QYC4BaGVudng0NHiJDOH8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711609224; c=relaxed/simple; bh=JUFqRAD4Y2HWZLAlM9lU2rge6kJwcXiTTkRldpJIG9I=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Qiv+RaTbZmMcG9fZDFS33MFZuCCSoMSjp9Dqkd95ZKCQNAc0vRfkz831f52yCJPTMLb6AEFOYIGARx18VmOk6xWQtTae2O3SE85QHIXpJrgQ55He5YDylQXhaIqFNCSEi7foc9PyQLVgq1Jx8J3ap7F2inrZnOINyQ0VheIdiLg= 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=aCe9NFQN; arc=none smtp.client-ip=209.85.221.45 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-f45.google.com with SMTP id ffacd0b85a97d-341730bfc46so348046f8f.3; Thu, 28 Mar 2024 00:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711609211; x=1712214011; 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=+Gw/CxA2/id4s/PnjiC7GhbbN/6K62gqnl0/ttHTZWc=; b=aCe9NFQNElX2oQpdVu9+0z8UTKmIXWYrXSFYi1/75vG99end4gziHJYjR+jCe2BpqA dBmk/1hvy43XPuRt6ZYzz0Q/LYv8M2LrmOst5/RUiAfr/JwY0LNovz7VbYtsY9kXt41M 6sxP2TIruw965N9UMFivbjWx/CFhQX0fSRm5UK0ulmqZj8p2HTn4kiPrrGK1z8GVtkXJ InuIStDsFiCCjCxGaUMuxbvbIEaRJiM0dbteLzi4lEioXzQGTGpF6BfXa/l2L9CCD1Q2 QzoN05oiO3GzNDDS6dt6mZbgtF+nqXn8ICPvSsf0yXQBWuhInfLF93yTIWlnp5d1kw4s xhVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711609211; x=1712214011; 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=+Gw/CxA2/id4s/PnjiC7GhbbN/6K62gqnl0/ttHTZWc=; b=bZqNrJu9Ut5x8tfcHC16HicUCfhtIvtdavdfR1JfS5lHg95uRB3IujGA1e1cu2hyFz baKz4s00hxuKOnZjWZT0vePB1xM/EZaa80vcjy2KAXJoO2iW5fHb3CRfZXQ5JcbSdtEZ TLoq/5Fek5cMVDCnGjtOMera057qrTXF8FCyDoL1rTl4FMPgm5wHW5em7JmeKxpE3o99 nCL1SU9aYw0llaSYEWh0eFBk279umbOWezSx6Tj8+KhZ225nGd6CIMBAz22Q8rr4KY5x Thv1BcF8IXVKQLOTqbtWYb+Vzr2yNGqwMBmSj3PtX3aaQchqkEU7VSVn3rhLMuY6KR4N Tkkw== X-Forwarded-Encrypted: i=1; AJvYcCVNfai18kVgXbnwlV/GHMr/dOtVbSdSI5oC7zb+8RcNYqKhTjgsTNm7nQ0HGml3stZK6a3aCGhQu+PzcF9EGZW/fz8bQ7ZMhxz6 X-Gm-Message-State: AOJu0YyZV9RC/SaDrQ+T0jnLHR37SsHD7o+SE1pbVTfBA8c3R5NhjhhC jSVHDZpNUd2uNVCGg/eLiabzjGjoOpwdz0PoZQDZtkktlrsSGMgA X-Received: by 2002:a5d:5746:0:b0:342:40c6:a15e with SMTP id q6-20020a5d5746000000b0034240c6a15emr1073404wrw.1.1711609211297; Thu, 28 Mar 2024 00:00:11 -0700 (PDT) Received: from giga-mm-1.home ([2a02:1210:8690:9300:82ee:73ff:feb8:99e3]) by smtp.gmail.com with ESMTPSA id l2-20020a5d4bc2000000b0033e7e9c8657sm904757wrt.45.2024.03.28.00.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 00:00:10 -0700 (PDT) Message-ID: Subject: Re: [PATCH v9 38/38] dma: cirrus: remove platform code From: Alexander Sverdlin To: Vinod Koul , nikita.shubin@maquefel.me Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Arnd Bergmann Date: Thu, 28 Mar 2024 07:59:46 +0100 In-Reply-To: References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> <20240326-ep93xx-v9-38-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+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OqHhx3APBl3vHvsvJTIH9agXHgKmy6lviHFf0qyJsyVpoGonK1tjRTeh 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 Hi Vinod! On Thu, 2024-03-28 at 10:14 +0530, Vinod Koul wrote: > > From: Nikita Shubin >=20 > s/dma/dmaengine is subject line >=20 > >=20 > > Remove DMA platform header, from now on we use device tree for DMA > > clients. > >=20 > > 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 |=C2=A0 48 ++++++= ++++++++- > > =C2=A0 include/linux/platform_data/dma-ep93xx.h | 100 -----------------= -------------- > > =C2=A0 2 files changed, 46 insertions(+), 102 deletions(-) > >=20 > > diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c > > index 17c8e2badee2..43c4241af7f5 100644 > > --- a/drivers/dma/ep93xx_dma.c > > +++ b/drivers/dma/ep93xx_dma.c [...] > > +/* > > + * ep93xx_dma_chan_direction - returns direction the channel can be us= ed > > + * > > + * This function can be used in filter functions to find out whether t= he > > + * channel supports given DMA direction. Only M2P channels have such > > + * limitation, for M2M channels the direction is configurable. > > + */ > > +static inline enum dma_transfer_direction > > +ep93xx_dma_chan_direction(struct dma_chan *chan) > > +{ > > + if (!ep93xx_dma_chan_is_m2p(chan)) > > + return DMA_TRANS_NONE; > > + > > + /* even channels are for TX, odd for RX */ >=20 > Is this a SW limitation and HW one? The numbering scheme is defined in HW: https://cdn.embeddedts.com/resource-attachments/ts-7000_ep9301-ug.pdf "7.2.2 Internal M2P/P2M Channel Register Map" -> "PPALLOC" "NOTE: The naming convention used for channels and ports is as follows - even numbers correspond to transmit channels/ports and odd numbers correspond to receive channels/ports." > > + return (chan->chan_id % 2 =3D=3D 0) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM= ; > > +} --=20 Alexander Sverdlin.