Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp425032iob; Tue, 3 May 2022 01:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/IOYdYRiMUVtA7oEXJ3cU6ilUHkQuaWVFew2F+9wV5gBqyLottbjE8aepsz4TSJ0jKYwL X-Received: by 2002:a17:902:6acc:b0:149:8f60:a526 with SMTP id i12-20020a1709026acc00b001498f60a526mr15627364plt.25.1651565095531; Tue, 03 May 2022 01:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651565095; cv=none; d=google.com; s=arc-20160816; b=H37kQBWf6CJcRsK1ztbE4xK3kxfQKbhaJnJ9UweBRsK3HeXz066C/ySsBH06luj43Q KGGWstFVC8kruJKNMd6g7txwHo9p/3e1G0DQL9TocM25V9tk0d6I5isXWVFttlwmxMoU SdpzI0VkwfTz9LVGcj9zIx6CUa0MD6UqquhVdq5v5rAWscy5k7yD8LXA8Ebg6qlRktlj o0FNtub5Ps1fqMoI99IA1ziH6zLT2pTyT4mviaNGdYzPpIzJUz8g5WiIky6FHN2qt3hg CpcOFJu8PeCQXGvohDh00DWyppiuoSxIZNNCdmdP2aW2cRnJwn5FCnSvflUnFC/l86M0 JupQ== 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=e/Q3zfGtgiMHzbjJMnG2PTBdvq5LVXiuIrva5mDt1sI=; b=wUsv9TVK76dKtbyyGJCBVYQa8sMFLOQPnKVUH/s8iNFjgfIzdFdOBqVs3Kfimt6KTh v9iUw0UH+50QEAb73YTyLImyVoufF4Q3KAYqMsTx+UJlvBn6u4oIKpsQrZYghybCU0qO TJCQQ4atnRPYN6nOSZTDBSRTsL6Cb1qUTYftVIrwcwu4cR+ZA6lU7cwxxmLlMh4PAx8M vR844239ttTO79ACbRIe+cTqmrcg5al3w0ks+yREbodym+UFQPJDeFYO1snorPENHRGz 3hcxvKS+N+Ht8VKzSXckCTfijUZIMBOvDUcn04ZwsEvAJZs0HwmoMYmUkOcRR8qJkdhd lxHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V1SsVkPh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a17090332cb00b00158657a3b03si3792813plr.214.2022.05.03.01.04.39; Tue, 03 May 2022 01:04:55 -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=@linaro.org header.s=google header.b=V1SsVkPh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231387AbiECG5e (ORCPT + 99 others); Tue, 3 May 2022 02:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbiECG40 (ORCPT ); Tue, 3 May 2022 02:56:26 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1E221A069 for ; Mon, 2 May 2022 23:52:10 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id k23so31673069ejd.3 for ; Mon, 02 May 2022 23:52:10 -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=e/Q3zfGtgiMHzbjJMnG2PTBdvq5LVXiuIrva5mDt1sI=; b=V1SsVkPhuDxv+i24Hg4azo6Fj3jkJpm/dIAlQxE3zYW/SBc1gHsMU2myuVkI6Q9f0c qCvvaNyZ4TRHQiAaTZWOeWnyik/ln/GslJFLL9yu8xtAzBMzLnsIUbcivktyassSWOTC ezcSbpV/rSPbV0WuDwT5My6T6h/jDhyFDfCz5XLfuqbbAceai1eCkFZLrNCZZ6I7zJ5N zszJv6PPiV/+z0eCJcd2tvL+EsRDyvBljOXjq7ASJg3ckrYvEnjgWYkL153vTwBp1ePA fa0ez0XiZ++ekSNmfgl5nry1FiB774ZZscJxBPMFTqwNLzUzn9IutrktCCw/QCCNwuSe S8fQ== 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=e/Q3zfGtgiMHzbjJMnG2PTBdvq5LVXiuIrva5mDt1sI=; b=CI9wFsVudWsXrM3O3psuST2aRkV83CXLVsNLSDIvggbHLkBWxTpNLj+I22CPl+eMU1 x0QHRWci/llOuanrocT0QHdAF/a/hF7RxbqavTU52MiV24MiJGck0By81M7YTrR1TL7T EgANkyDMcJLiygQ0/kFS7b8OwXXOh9l65JFuBQN4ag8v5YzvhLLQ3kzl0l/MjM0uGbye qoOfg1OU9QCqJWy/98g+8WXo6IwvbNm6wR/3EnrgsNj5eO9h8V2//33FrtGauAAXS3QE Y8t2sVVATz9w/pc3EiPNtSDdBMeFDQcFHLZnsFNU9L7aMF/+hzstQtzMFQPXBuHY1rbA WN7g== X-Gm-Message-State: AOAM5304YeFTzOInHYJFNWbmrhusp5ZL3ay/i2eK5pE2vYHrQVkXYoZ9 AtkqIkE1EnO5wciLZhtHZx1vEw== X-Received: by 2002:a17:907:9482:b0:6da:8ad6:c8b5 with SMTP id dm2-20020a170907948200b006da8ad6c8b5mr14137005ejc.372.1651560729585; Mon, 02 May 2022 23:52:09 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id hf27-20020a1709072c5b00b006f3ef214e2fsm4382915ejc.149.2022.05.02.23.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 23:52:09 -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 v3 3/6] dmaengine: ti: deprecate '#dma-channels' Date: Tue, 3 May 2022 08:51:58 +0200 Message-Id: <20220503065201.51818-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220503065201.51818-1-krzysztof.kozlowski@linaro.org> References: <20220503065201.51818-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Reviewed-by: Tony Lindgren --- 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