Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4727922ioa; Wed, 27 Apr 2022 09:48:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsVDfCQ5LBB3JKzXrg/0vzVsh2GKUcygykr7dgJnLbu9V5BkpNmYLCQHapsyJoQNkFUTtt X-Received: by 2002:a17:90a:c70f:b0:1bf:3e2d:6cfa with SMTP id o15-20020a17090ac70f00b001bf3e2d6cfamr34142770pjt.70.1651078087966; Wed, 27 Apr 2022 09:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651078087; cv=none; d=google.com; s=arc-20160816; b=RqFq6fuN5fspOxBw2hNy+SM84c0BPiw2HQgrCvb3YLC4sRJaGyg8nJEP0An93h/eUk lJMXL1BcMI+Yggl8budLXAz05X6QbPrV13jbyChI1MppaHucsf3t5aJ0od+isI06raGL Dowx9WHGqNc3yVQdfCyxp3QfKHXFaFvc49Ag6sGWAXJ4BDcVKGUVBXwyMwGzd8BQ7ob8 fW4K1T9A3OocLyDXwx9Rqkf9YIwz26DgNMH8B+UTH+oldoZbEIj0ACHDaXvTNSYIM5LF c9czaxurq4SZEJq0Kk1c4js7D7HIzDHANMR4u9L5L3j+idfh9tVNAXL1RyXfW6x/wsqu JCvQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sTnDbxdgS0mgXbKApiJHfHNISUe45/tlEA6w8LCqMVo=; b=xhh34FpCot/JBvjXL7ZEQYJLx52ZP+nz/7js7/SUwQKKD6XrepzFyU9JvytrwEY1FO uJ4sdn55vpq4psJx/rV0h0YnS3J1kvwaf3ZZXaNNRrRkdDWsFU1dgYmcujs5UxL6Jpo/ TnUIC2O9CkFQH2ufN3pnVlELzvNj2+g5YQvzNHMAf6JU18+eMtecq55+AKv3P/fKx+/2 GpERyjWlHJHwsCKg3qSjufs3qcjMaRNNKdN5idXhdMlX27lpqEYQI0ShMR0JchvR/7FN Cwgt8zDdmz+hL1rA2lr16DFGkQH1W+EbAwc/JTL18XHmpbUVj/HrxnFeQ3QLh0XhKf6s snDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=irFFHDjY; 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=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w62-20020a638241000000b003ab5d468636si2110915pgd.548.2022.04.27.09.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 09:48:07 -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=@linaro.org header.s=google header.b=irFFHDjY; 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=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62FB3229322; Wed, 27 Apr 2022 09:18:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242691AbiD0QSW (ORCPT + 99 others); Wed, 27 Apr 2022 12:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243855AbiD0QPb (ORCPT ); Wed, 27 Apr 2022 12:15:31 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDDCC3ECCB6 for ; Wed, 27 Apr 2022 09:11:49 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id p4so2564299edx.0 for ; Wed, 27 Apr 2022 09:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sTnDbxdgS0mgXbKApiJHfHNISUe45/tlEA6w8LCqMVo=; b=irFFHDjYZSFyQbxpZ9xzTVBaGrJELJT/3G3x/FVcvn1xrfoe9s5IA93JcG3qBIDnxU iVkJIYjG9vKQqIW3FNSn5tP6ElMaBqr77XOAtGCDLYaf+Jg5THkhiNbMazW4hbvGIEh/ NLmHWRqDRbwgEyfiv+QjroG0eMsO13vMO8aRCmbyCZ2dyl2CtS1RAelAPSuEkKom64vS pR+kfALVNMxQSLeIese1bDwf2/KjSk+yTA6+8g7B1UZfoL1/4u4xEgQpcmWjeO/hWY+c xJ04+AjqifWlGUlXOPe8zDglHMsleClC2lY7haam96Th65gT55+s/XyaQcqCHg9XBcRj j2LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sTnDbxdgS0mgXbKApiJHfHNISUe45/tlEA6w8LCqMVo=; b=dUJs9nLbTAs/dUF9SWCRHjdIqYOLvySZ6fRlkWsNKXss9EqiWHkrI0aeOwfvpeaXCS CuHlVUmFfS+It0gtMY8+o4SPx/9FTXquyHXCk8vgl+uPmD3GTLA5ifzH5qkrJLUgAhpW lg+zpjpG4Lr3jaUC5fZNCwpt5pDKOHxGBBSa+PpzWvzVl+weDsluAfw+xN62JWcnPbBi qdTMuntVijH5iXiaB7M87TJk4H1KGA1dR2CaqWvCGC/Tf6jsyRr4qrgJvQKNj5rlKFB1 A5ygU559QHVNMlyjqJQ0G94y1r+uP5sUNC01O6C4+JyfXXiGKn1Yl64sRgzs230UlO2j JE5A== X-Gm-Message-State: AOAM532lUiSbIDcMLSkw26kCpRftlAQVKgSRjpr7vFqsMbH60YM6bnmi LH23eZjSbNCieFdpHV9Vk5UvKw== X-Received: by 2002:a50:8dca:0:b0:425:e8a3:a79f with SMTP id s10-20020a508dca000000b00425e8a3a79fmr17010276edh.155.1651075906702; Wed, 27 Apr 2022 09:11:46 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id m1-20020a170906234100b006ef83025804sm7124610eja.87.2022.04.27.09.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 09:11:44 -0700 (PDT) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Sekhar Nori , Bartosz Golaszewski , Vinod Koul , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 3/6] dmaengine: ti: deprecate '#dma-channels' Date: Wed, 27 Apr 2022 18:11:23 +0200 Message-Id: <20220427161126.647073-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220427161126.647073-1-krzysztof.kozlowski@linaro.org> References: <20220427161126.647073-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 The generic property, used in most of the drivers and defined in generic dma-common DT bindings, is 'dma-channels'. Switch to new property while keeping backward compatibility. Signed-off-by: Krzysztof Kozlowski --- drivers/dma/ti/cppi41.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ti/cppi41.c b/drivers/dma/ti/cppi41.c index 062bd9bd4de0..695915dba707 100644 --- a/drivers/dma/ti/cppi41.c +++ b/drivers/dma/ti/cppi41.c @@ -1105,8 +1105,12 @@ static int cppi41_dma_probe(struct platform_device *pdev) cdd->qmgr_num_pend = glue_info->qmgr_num_pend; cdd->first_completion_queue = glue_info->first_completion_queue; + /* Parse new and deprecated dma-channels properties */ ret = of_property_read_u32(dev->of_node, - "#dma-channels", &cdd->n_chans); + "dma-channels", &cdd->n_chans); + if (ret) + ret = of_property_read_u32(dev->of_node, + "#dma-channels", &cdd->n_chans); if (ret) goto err_get_n_chans; -- 2.32.0