Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp15211lfv; Tue, 12 Apr 2022 15:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHFcVOB8SmLwzv3Jo83tABtdLZ6CQHn7P9bEppUeLzl1sJdnDB54nrHrDifs+HByRL0uO8 X-Received: by 2002:a17:90b:3c12:b0:1cb:70ef:240a with SMTP id pb18-20020a17090b3c1200b001cb70ef240amr7215891pjb.217.1649802049190; Tue, 12 Apr 2022 15:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649802049; cv=none; d=google.com; s=arc-20160816; b=qAlShR7yp7q1UpB+/gwcT3/vXAY1cTBr7tDrDd5TwcvFKLBXBE0ohxQJ7A3UO7B3PX De7mlFJEbsLnU+7mjt3XehGmr/kIioKp4b8tmuCE//jMd9TWYKZiYC4zVqptHoEYZLJn cDEO6uVc5xxoRDJchCdy0PH2rV+shEL7PAPZU7H5HSY5K/vMBFb4whYOMHsAp9Jw+QmQ R+TjFqY9X2nmK3B8R1Rqd0CtB/vRtqjBZktEwlaXIa7JXtJOYDTBpBsnflaW8efpSZwa M2JqGRH+2Svze3uVreDG7TW0JiPxlOk6edAAM436hpGhmZfm1TYQQ6oi+BULBcFVDFx5 MkGQ== 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=enaZoEpjkksrJaVEmnfFA7Ergvc8Zxb0Gsdm2wSzyDc=; b=p3oo4Vlpa+9Kv37t0rMy98TuQNHChp8Yl5JVhU3W58p5HkP4gvIc2mKqYarus2bPcO E3qhSh/Y3r6/OCT6jmyY4OySrBgk2vYXL/5Gy/gAVj5vLGeJZ0H3uPKlY55iXScRNnK9 7ELq/ZAgWAglR5JWQ9kPKXQSRGoOs7I79Ld6mNQmx5Li/Nvb0tb63bLEmdr0mVpTXBfM E2UKfExov7OU+5XYua970qKgx2nQB+JrrhMxEeRIatVVqK+0cRibRVkqGJ/2MFgktm39 AgTwzUdHADEA2onXyPvOvfPxf6b2IOoZLzZ8LAncF8KYfPnWafMw/PzkWhMNy0WFGReh SsAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HvadtOZf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id cl7-20020a056a0032c700b0050604ac89e3si1870742pfb.345.2022.04.12.15.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:20:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HvadtOZf; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 3D0C5173370; Tue, 12 Apr 2022 14:01:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343527AbiDKKvN (ORCPT + 99 others); Mon, 11 Apr 2022 06:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239480AbiDKKvL (ORCPT ); Mon, 11 Apr 2022 06:51:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E614443EE0; Mon, 11 Apr 2022 03:48:54 -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 79AAD61518; Mon, 11 Apr 2022 10:48:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04C2CC385A3; Mon, 11 Apr 2022 10:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649674133; bh=PYoKjVNaZaP85+VTrMLYd0+rrD4W9IKBqmtGHK94kPQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HvadtOZf2dSKdYcMt3y9aytIYryVH5LRSa5Fg3QzHVo7zMhoMIbIoWHUw0D2Q6cTR lFpn6Pd6Tfvy787XXpjYzoQ5jPr7tkKYUJ5u//qj2oylMh4c4SpP4EmkiHzMfgXEU2 vE0+1Ky6rrslhjr+I/OVminEeEwR5ZJoE/xN0etO+JP3RS9mpR2NxiOp8Zpf8cehIC xZsZ9TyuAxN04MOn5YleIngCXUbax5qRVXIYuyCBlf7dq/TOMou09benIqN+vCTx+p i8GAfm8ToTMmhlz+Ov/cZImsojQ9mdLJv5u8xmJHuIWRqPl6MpWuyVFUIiTis5V2zy lFU4EgDZDEP3Q== Date: Mon, 11 Apr 2022 16:18:49 +0530 From: Vinod Koul To: Zong Li 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 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 11-04-22, 10:51, Zong Li wrote: > 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? Yes -- ~Vinod