Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp820825pxb; Tue, 12 Apr 2022 14:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1aCSh9l8gwlHSqyoTdCvMe+8er6/xn0JhYcu4VjOGdGe6R7BFr5uoMSeB0FWN5Krj7vMG X-Received: by 2002:a62:cd83:0:b0:4fa:7410:6d86 with SMTP id o125-20020a62cd83000000b004fa74106d86mr6561282pfg.52.1649798572424; Tue, 12 Apr 2022 14:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649798572; cv=none; d=google.com; s=arc-20160816; b=0c8uXgVfH6e4ABn5Cp/8wvfIJg6xrPYe4JjGJYLlqT7hXbUBKJPP3G1lmmSr7HmHdN xdCIr2yOPCiFAcRW0O0iDT6iR78OCUPhPbG7/PX+UXc6Fd9xb8AHKnAbp+RtcKJn2Gkw 4wAaJHTgqZE9fevCze8J9KZ6vVm8PQ0D2X40njKO9gJwcgNAroeaHyBCUlm88Zt8SuYh 0OfLOx1gpOHYuDCIGzM+0wq/m88aSLWr+XVMALNzcRBuG5cBg+7LVKuhQXC9Lv0gsji3 5GwMMH+k1XaOt9ER/3RLt9G9Yt/rd6ydks6KD7RJKeXAZVilMIkYFVfiEVRVPi7idbId J5lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CyuRl0W1QnYY/mOoGFoXueKfG+co8qjgtRjo8T9cchY=; b=IBLphIeA/ukGvGLrEibBX3xuj9WIoz2cpjCz8WDa9Cts3mHS/ko9InSBSQTtMuBqMC OBmm8EF9y94jxLRSypg/6oSJ8J9yayrYNX5JAY6vX2XjOEJ60/HBFuWcrhKElO+8cbKC F40/yJ5kLYHkHDXaNwy/rO8jWMM0Nf73pw+QLqN3NQYRRM8DbE3VBOflX32Nx38IlF/t Hsm/kLzwivXWDF3VOUrQaQsY9zDzJ3aj0Ex+Ig/+11o1M3Dulwvv1/POxaDvUa+9hLKv 8EO003UjQ3dIcoyZ12em5fVvNkR9haW2PoW21RgpFdM3hm+9b5AeSCTzmT8ffFokWIr8 pNrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=paAnEef7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id qe13-20020a17090b4f8d00b001ca79f9c8besi17447303pjb.71.2022.04.12.14.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=paAnEef7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3404510CF24; Tue, 12 Apr 2022 13:34:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235978AbiDHNQB (ORCPT + 99 others); Fri, 8 Apr 2022 09:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232740AbiDHNQA (ORCPT ); Fri, 8 Apr 2022 09:16:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF1A7EA356; Fri, 8 Apr 2022 06:13:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 69CFC60FA7; Fri, 8 Apr 2022 13:13:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2550C385A3; Fri, 8 Apr 2022 13:13:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649423635; bh=I/sH4Z0xGBHI7ug7PEjQLDL6PwxzNs+O40t2lamCdAg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=paAnEef7FXGw6SkN1DeZazjXUrTrWnlbuIJA94cEwMqCo1IXh+54ziV2wF9jVRxkh 2rtH68RCh5WkgigE98L/t4ZJkq84YuezuRojX3GjZzmehMFAcbTmN2mdVhKZwF9Os9 NI2WOlC5G0TEEzbflWsHJTOUqXReVfLCHZAzrmSwBzdpiQP4d72gD+3phSXPOnRjfU HrbYWXk/ZxNoD1MyIuRfJztA5O9b5uijKt4qrLAb1Q5AiGEvy/CAiE021Xd5D6+tva gZqPI2C763XA9HDx7EqiIlFTD0nReUXKhM7znAtF9MyX/BAxZajj5cmDGBPoBiNuJ2 9pJ1Pl73QIyzw== Date: Fri, 8 Apr 2022 18:43:51 +0530 From: Vinod Koul To: Zong Li Cc: robh+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, 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 Subject: Re: [PATCH v8 0/4] Determine the number of DMA channels by 'dma-channels' property Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 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 -- ~Vinod