Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3038802pxp; Mon, 14 Mar 2022 09:35:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUe/eGdp26CwBZj/iurj1WTNIt1tYv6zyKVJSieYb25j7VjCW6KlK9YY5RBgCU4qABiE1R X-Received: by 2002:a17:90a:8b91:b0:1be:db25:eecd with SMTP id z17-20020a17090a8b9100b001bedb25eecdmr111824pjn.10.1647275751381; Mon, 14 Mar 2022 09:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647275751; cv=none; d=google.com; s=arc-20160816; b=wYzTnzcA/OV6wA4j0FjePn0/jaw0cy9Y2IKH2OVx/5iOfvRp20Cq/r1XqgFq0afEUG ZVr51RW3lJ6w0XBBQ7+1ZExzYh+r1sYoYOKv97DumH1SP1vEoz954mJ7GZZHq3gOdNc1 VmOeEWgycQ1M0Qr6kVfWNGLhOnB5OVrdHLikZRIhokBe8I8rbI5j2HUdJHf7XGkxJHF+ 38nJWA+gJx+MiWv0cLr9rAOhoo/9K/QcaB7iqmvBxecJh7XZokKxqCcnNFG1JdSNEbnq Tr9VjcQsyH2xiZyVs+V8c5GoUIGG5aDcO5Y5Y5FHMloNtvnu6PeUWHgCrd02tbx3AJte 0feQ== 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; bh=CvpuqttTwsRBcQMW0YQEsmo3EtGxhmRMWmaHZomXO14=; b=IIj0QUyjl1tsDGKOVS0o9Vg/t7+CyHruhBnhEs0UXiXvYJdfPoZcrTXih/GfT6KiKc 45r56YPJGU9aDYFKdsNLSgtQanPaPq2PN9w5R3CU7BQawlZeUVo/AeB8d+Kl+1fFbz5Z EVk6yd1fOIcR12w6/t0z0B2FsyWhSJbfHsf/oAhmXOzBPosAGS4OQyggCqoiflAS0Reb Z/yvJC3+K8SFpOflJkuWoqATRNMBeynYM5D1sNObST1wnyFocYhlt0qrQAXMVgtkCr3e 4aWWBtecz+J4Mos2ssWLZzikcyR9BRGTFIX42XGilHBNAPTh8rieBULJkTmdF+wyWesm LtNQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u4-20020a63d344000000b00380788fcb1bsi16103486pgi.699.2022.03.14.09.35.37; Mon, 14 Mar 2022 09:35:51 -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; 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 S237066AbiCNK2e (ORCPT + 99 others); Mon, 14 Mar 2022 06:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbiCNK2d (ORCPT ); Mon, 14 Mar 2022 06:28:33 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4E2434AC; Mon, 14 Mar 2022 03:27:23 -0700 (PDT) Received: from mail-wr1-f41.google.com ([209.85.221.41]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N2E5Q-1o85pv1l0w-013hgA; Mon, 14 Mar 2022 11:27:21 +0100 Received: by mail-wr1-f41.google.com with SMTP id r10so23114352wrp.3; Mon, 14 Mar 2022 03:27:21 -0700 (PDT) X-Gm-Message-State: AOAM533wi1wQFKz/jjWWoA7OIi+D1FVHiKPc6L98q8OBtKOPpvcimtkL NbM+B+UpI1VmRhW9zYjTFTJXrifH5mXi/liRfHs= X-Received: by 2002:adf:edc3:0:b0:1ec:5f11:5415 with SMTP id v3-20020adfedc3000000b001ec5f115415mr15782141wro.317.1647253641105; Mon, 14 Mar 2022 03:27:21 -0700 (PDT) MIME-Version: 1.0 References: <20220312180615.68929-1-singh.kuldeep87k@gmail.com> <20220312180615.68929-2-singh.kuldeep87k@gmail.com> <20220314035118.gbjbrwbsywxljjti@vireshk-i7> <20220314065434.GA43329@9a2d8922b8f1> <20220314073102.l6vokyookzyo76hj@vireshk-i7> In-Reply-To: <20220314073102.l6vokyookzyo76hj@vireshk-i7> From: Arnd Bergmann Date: Mon, 14 Mar 2022 11:27:05 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] ARM: dts: spear13xx: Update SPI dma properties To: Viresh Kumar Cc: Kuldeep Singh , SoC Team , Arnd Bergmann , Viresh Kumar , Shiraz Hashim , Rob Herring , Linux ARM , DTML , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:t28q1Kl8p8y/OBfeV9ZIJ96sVsdvnyOLTTMw9weIAt2vbSH/DUv yL1LMMqmRs3xnHa17t1mulBn0ysPW3mUFsSQTFwLzWwmta2M4Jku2peA2D/XSbC/XVbitna Kw4eQIE2bJW69R7k1wcIMMae0tpvAMLU1vkmYAc4s4+issN27rM45N5XRNH3jObAisvV+EV aJc70dSYzCclOWoHPyAPw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Xeeq591h+34=:xxQi5QwfOEbLzqbQOb2f3V 5WlpQ5tZ+s+yu9A0UoaQGV86rl8AKvomDSy1o9kojwOGrsXfYaA3TTh2A7OrHJRmw+S+YZUOH e1Y+2bBDS8l4pWOL72naVxOOeopUzd6Pg2tgYERAi1gNXAQDNWJE658Wz6W4EMAp7Qurq4X2d mKWVYcNtqXZhfgmPgP1BYc2Onww95DRevGecy5/HEzf68E2iOs/0NctrrWUlb9DxAnpxkl63l MZ3zPceTRYDECdRo78FwByz+tOswz5ALs00IkcsRWBVUdaAeSV3aYYEqOUJQ7N1VgYCZmmqcT 0dZzRo8wry92g9Ejsmzgqkf1taILTvH4/TPe1J6fSpMHiARXKIOkBkuOYFkpB+p95Scj0L/U7 pOEBrSJUAwoJc7ur9/SuDTWkIAZ16xHxUt02n1vCDdrFC7O7sM2nvBK7W/gHUOeEQkA6LsGBC K0Z1TphVLVL3gMGUzGKLFeTUptRjG5Ycc0EjPIwzb2DzneVnI+2o8Tl5sVLfrWIA20BpcZDsg zdfP5/7ar6ZV/qQq6He85v3pAUXB9Vt/6e1jnvCqJq50x5HFUiB5F+ntGqH2wVqDN/lDFxUoh jlMiL5T3rMBRcouoM//J5UlgRDhI5URj0ec96mLxh8a3lL8hBgbmGm8cv28Z/V/DJ+8wEqn2g PfY355G6A8Bpae+CDg6cyTsYjZuLFq7yxxoIQduv7NWwxouhP5+zIUGoCIQPGhAfSQuA= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Mar 14, 2022 at 8:31 AM Viresh Kumar wrote: > > On 14-03-22, 12:24, Kuldeep Singh wrote: > > Dma-names order matters here. > > As per pl022 binding, dma-names order specify rx,tx and all DTs which > > have tx,rx as order start raising dtbs_chek warning. Thus, need to > > reverse this order. Please note, no functional change in this patch > > apart from just fixing warning. > > > > Warning: > > 'rx' was expected > > 'tx' was expected > > Hmm. I see your point now. > > dma-names: > description: > There must be at least one channel named "tx" for transmit and named "rx" > for receive. > minItems: 2 > maxItems: 32 > additionalItems: true > items: > - const: rx > - const: tx > > > I was expecting above to allow adding the items in any order, but > looks like the order is fixed with this. I don't think that it was meant to have a fixed order: unlike the other bindings that define xxx-names properties, dmas require giving names to allow the DT to specify more than one possible DMA specifier for a given name. This means that nothing may ever just rely on an index but has to use the name for lookup. OTOH, while fixing the order in the binding does not add any value, it's also harmless as this should never be able to break anything that worked for any combination of old/new dtb and kernel, and it's probably easier to express in the binding. Arnd