Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp612767pxr; Mon, 11 Apr 2022 02:37:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpHaglxUVXtKw5pROqvoptXoGXMLjiCobAg8IgTF79752SZTCk2esGqrOc7XuFjc+o5svO X-Received: by 2002:a05:6402:d4c:b0:410:a415:fd95 with SMTP id ec12-20020a0564020d4c00b00410a415fd95mr32397697edb.288.1649669865624; Mon, 11 Apr 2022 02:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649669865; cv=none; d=google.com; s=arc-20160816; b=cf5GwQUBaOP68QAZi1Pi5Hi/uR8RAqFbvbUYakYQMX3/TzJVJ10XnNUyXPpl5yvctp pu1KK/K81gU9RXH/1yY+khUhBaubbzjoiHPRycI+M2C35dqFFEPDbyzEiaBaUFlvGvN8 jd6N3iti8UFlqYwyuuXlfJe9ZkKG/9j+eVha6T8oWE6YU9VyQTZSMWLgUX0sFXwz4VtV ctZzwhGVo5qlNlULXeEdC8HvQvYTbXH7n8JVWptpInLmV1fsw+/PLm8PjIIY7TR22PFQ vhOw2TYaHWboDnBMV/2faZWyoRh8By9ZjCARSKhzmT5YhAS4DBM2Ny/tVfIQy49063LW e+Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oKaNytCrnwRly85Cf4rMP6kv73OcecChjT7UHRYi0pY=; b=O8JJOs6wzQ8mufHYtgRAfgcG2wM0L27uWHEhz30xt+vy2qYnvaNki7dt5qhQGCCj1E iKgpyAmduAGZWvmnIwH+Vo77Pdly2Izp7V78HqHQk98qb37mE8bUSRF4jzJ03WH+c3w8 4BXE9z6d1DGJxuI/powAt3Zd8Igfm2T/6K1byPFQzDCTghDt0ITKFKNolU1V+opENlGi TjqRoEbA0JamcW+RcHn0jkBQq2xouLKSls3fdPXtR4gvz/rKeAxAYN1g9g8SnfU9Ouev b8Y1YktEa+CUF7+OFLNuaReN9fKo8pv//vIYCkzTEf1x+KFuSlswENmA6crzgxIlaj5U ur+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=foU1Pomd; 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 j15-20020a170906430f00b006df76385bf4si6440909ejm.148.2022.04.11.02.37.21; Mon, 11 Apr 2022 02:37:45 -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=@sifive.com header.s=google header.b=foU1Pomd; 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 S240099AbiDKCyZ (ORCPT + 99 others); Sun, 10 Apr 2022 22:54:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244422AbiDKCyX (ORCPT ); Sun, 10 Apr 2022 22:54:23 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2371FD07 for ; Sun, 10 Apr 2022 19:52:10 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 17so18443606lji.1 for ; Sun, 10 Apr 2022 19:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oKaNytCrnwRly85Cf4rMP6kv73OcecChjT7UHRYi0pY=; b=foU1Pomdt1fSDC1+Vo7+ND9Fu80KDnPA26WJ6965htPY3McsZwzjuN5iS1aJSmS/2e c0bzdfE1d1aeur800axp47kax1MwU/ItdIQ48aO+x7f6q14qTO7FouaXMUew5eR39Qjz wxT0pL0KlELChxAByT+Cy8RYGO66VavKzSZonGJg5yLbMduZp/sntcIf5zDmhHXzCPLM IpcVenUyQ/9RAaYt4B2RIiL5Ssz0dcqz+b92GuO6CmPFyu6Y7BpBEUObsG/K1lEwKhVc 2cOuKb0CePD1Jnm1oeR0BJQZv5ClNsw58kaSgkK7JuDUfqsfqDXeCcOoudlg7zsmKHql c6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oKaNytCrnwRly85Cf4rMP6kv73OcecChjT7UHRYi0pY=; b=0B1S47oG9pgaCv8Qff/gVPOw0LyChRFGti63ow7AJF2oqjIloP3d+WNWud9qfbJ7RI N8W1TClzQ/1R8hbc4QMCXUn/6K6hGQwmGOJt8mac64hSvs6JpzBvsbYIROdeOHJT7QU+ +XwhrrFS9fDtqqWXUqOWwFtsgl1GiPeniniBBTxpd8CyHRQSmNysie/jh2LwCOk95dRZ aS4sUKv+jZESZuZHrBBGtvxPPzYIwd9a4YOYtS7QzgQ1fQ1lE2gUW0UogRuUqMdpU9g3 LgZrJc4VyR6sa/MiU20HTgy0TDbIHLi0EMsBaf1MEyV2AZMWHKWl/qRts9/lPae5sGlB n4YQ== X-Gm-Message-State: AOAM530FXyT48wdIF3QLW0qCq5bRZlKEvRD+yJBifARe8JwIb09kY+jG ZTGtkIMpTVUnRVg7dmu990l7xX2ToLQHzw9qHAuZOw== X-Received: by 2002:a05:651c:544:b0:249:9db6:2472 with SMTP id q4-20020a05651c054400b002499db62472mr19462133ljp.516.1649645528693; Sun, 10 Apr 2022 19:52:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zong Li Date: Mon, 11 Apr 2022 10:51:56 +0800 Message-ID: Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property To: Vinod Koul Cc: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Bin Meng , Green Wan , dmaengine , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org List" , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Fri, Apr 8, 2022 at 9:13 PM Vinod Koul wrote: > > On 28-03-22, 17:52, Zong Li 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. > > Applied patch 1 & 4 to dmaengine-next, thanks Hi Vinod, Thanks for your help and review. For patch 2 and 3, does it mean that we should go through the riscv tree? > > -- > ~Vinod