Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1084424pxb; Fri, 1 Apr 2022 04:17:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhmFd7XBDxzskdby21CfkqIE5fTVe7xmNAs8Sh4D4nX0NVkbwS6qIt61RyCuxsK+DMTpWm X-Received: by 2002:a17:90a:8591:b0:1b9:da10:2127 with SMTP id m17-20020a17090a859100b001b9da102127mr11296229pjn.13.1648811849951; Fri, 01 Apr 2022 04:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648811849; cv=none; d=google.com; s=arc-20160816; b=PviHy/T3k5dTMXrn1p+YLu2nvGcrkV2+VRTmikGEmnAWNMks/+e62A3J6Hm6aWBQaE 4vXFEJhU/erOhRbNScx551aYGd3mfpFUmzO505CnZKldoGlZGwmD7cLx0q2c3H6MdPQ5 ZIS3WOHvASLus324/n+ao9LZoFvC9XMfro/hhBaPcfFjuIPuCCYDoUPCV4YfGLDG7O7N oxDk6DmXkIzSZYyFWCLGDA1V0anD7b8ZbSwmsm345IA97SjL12ffsp5X0GhCLcDdG9Mt UEbRvbp4OTdzrgfxhVvPsWUuICtGmYCYc3RKzZV7REVdcF0XxIinFO069n+kXJ7+JVJO 7Lyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=yv9Wzw03+NukkaSaVZZG3A+e/UbaRsd8qeLIgoxYYGI=; b=jab45fxSMJl/D33kBKvVoLPxS1SnOzGOfds5czjZXK9xo+E+DKahmss4PawPjHZQj0 ByAiy9FVZS/Fvfy+moarCCXhISxzwwQEpirvap104wMzma6tG6LTW85jl3LSw0svikCY 8e6It6QAmWtH3gmLoDDd+Nw9h2bNqwGUdHbQmqmD1eHxjXTictgQ6ThwoqKL4X+HCaFf Zm9d1b4Qr2hSqrZPHPJra5loMNuISYv98aoKXLnc55fvR6ssR5YczJORNfybvRpdcQN+ Ad8jnpQ2yJxIVXDF68JkwN0KekgzCp9kTkG083uRq3y5fMClCn0R6sKTaG+0xbf8yNbk n2+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=aLtSxaTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056a0008ce00b004fa9846a3b7si2249006pfu.363.2022.04.01.04.17.16; Fri, 01 Apr 2022 04:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=aLtSxaTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242642AbiCaWnv (ORCPT + 99 others); Thu, 31 Mar 2022 18:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242636AbiCaWnu (ORCPT ); Thu, 31 Mar 2022 18:43:50 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2FD122D645 for ; Thu, 31 Mar 2022 15:42:02 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id i11so864435plg.12 for ; Thu, 31 Mar 2022 15:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=yv9Wzw03+NukkaSaVZZG3A+e/UbaRsd8qeLIgoxYYGI=; b=aLtSxaTzBBfLrrs6Yqf07PKFqBsmzaPzZr4oCPxsKElf8kiRNH12fyraf+9osQPlA6 nWW0TdKR12qeZa5fqH+vC9HP/3odKQ6hI1oAxbayxR9vaf3F1KGyttkH5lX4i6VksxXu 0xTvzKY3GYCmzhee9Cl/y5RMFqT1DmqCZRziWA8NF3naBvhnmTQWsjPxf6EmQPRB3k44 yPQc8Z2d9rbZTnN7tnNdq3BqES9JSP/Gno/o8Rc1w4eD3F0uNfqj6mCScR/H9U9Xbbes e0CBI6ZpomHJG4s4WiA4H1eBQuW+kw1whOvqnA0jEoZ7imEhea5GKa5Uo6qClnjrplAr vJyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=yv9Wzw03+NukkaSaVZZG3A+e/UbaRsd8qeLIgoxYYGI=; b=VwL4oQqagXi5ThG/2m7HzVbPx2arePDt/eRquy22Fa/E1BQSeg2GZO9q3AkZFELTlK oWlZLm3RHxe2OjEWn2ylDsNkThYmN1Kn4oWDwGhOZ7tgzMaBXryRB46/ugeQmYzdDiKi vfYdEDsPbOUIWcgG2M9os8oeedjAuQg763um00JU76ZPtMZnkTBywmLMcbz16Q9cOw0+ wtvC8QsVi2v7Jum4JxpBZ0ox4rLTa/Z5XufCFu9FBVVo8RvK7syTriRpED1lAQ3EM330 Yig1Vse8chDCO6Pz4AAgXs++xjxmXYYkzofL2NiXN6OwGy0Wjp1QrTjiZeVtPA6Blukn gSkA== X-Gm-Message-State: AOAM531Kp5mkffAF0SBh4ekq3BvkrfWSJ/HfB+k3vQEstXZMwsoUguFa greSlrCOwlvT0Q31r4G/3qfTbw== X-Received: by 2002:a17:903:18c:b0:154:9ee:cedc with SMTP id z12-20020a170903018c00b0015409eecedcmr44211037plg.123.1648766522196; Thu, 31 Mar 2022 15:42:02 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id u11-20020a056a00158b00b004fb07effe2esm510368pfk.130.2022.03.31.15.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 15:42:00 -0700 (PDT) Date: Thu, 31 Mar 2022 15:42:00 -0700 (PDT) X-Google-Original-Date: Thu, 31 Mar 2022 15:41:57 PDT (-0700) Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property In-Reply-To: CC: zong.li@sifive.com, robh+dt@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, krzysztof.kozlowski@canonical.com, conor.dooley@microchip.com, geert@linux-m68k.org, bin.meng@windriver.com, green.wan@sifive.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: vkoul@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Mar 2022 22:54:47 PDT (-0700), Palmer Dabbelt wrote: > On Wed, 30 Mar 2022 22:21:56 PDT (-0700), vkoul@kernel.org wrote: >> On 30-03-22, 20:15, Palmer Dabbelt wrote: >>> On Mon, 28 Mar 2022 02:52:21 PDT (-0700), zong.li@sifive.com wrote: >>> > The PDMA driver currently assumes there are four channels by default, it >>> > might cause the error if there is actually less than four channels. >>> > Change that by getting number of channel dynamically from device tree. >>> > For backwards-compatible, it uses the default value (i.e. 4) when there >>> > is no 'dma-channels' information in dts. >>> > >>> > This patch set contains the dts and dt-bindings change. >>> > >>> > Changed in v8: >>> > - Rebase on master >>> > - Remove modification of microchip-mpfs.dtsi >>> > - Rename DMA node name of fu540-c000.dtsi >>> > >>> > Changed in v7: >>> > - Rebase on tag v5.17-rc7 >>> > - Modify the subject of patch >>> > >>> > Changed in v6: >>> > - Rebase on tag v5.17-rc6 >>> > - Change sf_pdma.chans[] to a flexible array member. >>> > >>> > Changed in v5: >>> > - Rebase on tag v5.17-rc3 >>> > - Fix typo in dt-bindings and commit message >>> > - Add PDMA versioning scheme for compatible >>> > >>> > Changed in v4: >>> > - Remove cflags of debug use reported-by: kernel test robot >>> > >>> > Changed in v3: >>> > - Fix allocating wrong size >>> > - Return error if 'dma-channels' is larger than maximum >>> > >>> > Changed in v2: >>> > - Rebase on tag v5.16 >>> > - Use 4 as default value of dma-channels >>> > >>> > Zong Li (4): >>> > dt-bindings: dma-engine: sifive,fu540: Add dma-channels property and >>> > modify compatible >>> > riscv: dts: Add dma-channels property and modify compatible >>> > riscv: dts: rename the node name of dma >>> > dmaengine: sf-pdma: Get number of channel by device tree >>> > >>> > .../bindings/dma/sifive,fu540-c000-pdma.yaml | 19 +++++++++++++-- >>> > arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 5 ++-- >>> > drivers/dma/sf-pdma/sf-pdma.c | 24 ++++++++++++------- >>> > drivers/dma/sf-pdma/sf-pdma.h | 8 ++----- >>> > 4 files changed, 38 insertions(+), 18 deletions(-) >>> >>> Thanks, these are on for-next. >> >> The drivers/dma/ should go thru dmaengine tree. During merge window I >> dont apply the patches > > OK, I can drop this from my tree if you'd like? Just to follow up from IRC: I'm dropping these from my tree.