Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1469542rwb; Fri, 12 Aug 2022 01:10:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR4maoxOjGydUGjRDkRRvrLQnZcv6fErvJzedVAeyrTy1m9y9QYLVqPOiy8fkReM/S+PgoZc X-Received: by 2002:a17:907:7e9f:b0:730:d954:c2b5 with SMTP id qb31-20020a1709077e9f00b00730d954c2b5mr1855011ejc.311.1660291855159; Fri, 12 Aug 2022 01:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660291855; cv=none; d=google.com; s=arc-20160816; b=qlUfARDalUOQtGNAx5q2aAUR+FB1DqO5LCxiKGCdB8Q2crlfw8M8OBrO870EzZwWoD 0apfiga1MJzH8qHHgE3y1ce2aGQeszgqMKTZJRWrUFYODkN7HCrfuX3gktnVbcBu31A7 CXLGkfwXDzBNDXcw/c0Fh28JqT42p/QMw1nWxta3xbuJhYIjvPRgOIMi9+EHktf3I91U ZQtEPSpcHbnQDXcuPyHWxVtYMK/T4wseoxgG0PALdsiokCS8/MLZg3gtHSWGUJJDnTn4 02GmOdRioeFMIqXZ75MfQVPmzIKXQqGFCTZF0IBfpKPoY85/TWI13baVeeLTJnkOKimi nwMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sBayUxRV4uPcA67ScjufKHzSC2Zb9c963r0CFb87BtI=; b=0UbmyxVWjlDfL5f+SsYqYF1zf+aUOh6/eOwHLPW5Zw03XBZTFOE+yaiUoG8A91b/yi 8TanzO2QrMnnqx5ZvB2j9LaXzX0Pels3+SBXK27E/i+g5MdiO/opfuRQUmvfER9X588L aOJKmJFBqUveJZe9y/wUvsq5bK2samc8JV2hjKaNiuoIMTEdLddHaREiye6wiQ7YvJRF hGIU+nq8sH0tctVudT4ngnNkQhRT6O56R2cRcELoAjwBf/bp+SzrtXDrE/ua1sfBDVOD dmziQEjdpa88RNfgqX3PEV0SlYg2yytp02PM0ejF39K0w4YZkpEr32jAKU9uFslKVq1e s2mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZxmhqxbL; 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 h8-20020a1709066d8800b00726943e5de1si1096169ejt.579.2022.08.12.01.10.29; Fri, 12 Aug 2022 01:10: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=ZxmhqxbL; 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 S236601AbiHLHmn (ORCPT + 99 others); Fri, 12 Aug 2022 03:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236078AbiHLHml (ORCPT ); Fri, 12 Aug 2022 03:42:41 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC69A5738 for ; Fri, 12 Aug 2022 00:42:39 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id x10so171068ljq.4 for ; Fri, 12 Aug 2022 00:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=sBayUxRV4uPcA67ScjufKHzSC2Zb9c963r0CFb87BtI=; b=ZxmhqxbLyYEKBoaek1kELjS9zWam3584fB7+hC/D/yOL5VIzNTYK2p+l0hnDNec9la PwxLpp7lD6asWrVMYpbxrj8CbVyUjv+NVMDvJQ01IIQ3ojDKu3SMAzbB9PvJGAfK3fCK lkPqvEEQ8nOZyQOfiBSseOBQ7ZNyvByQ1xgfkWez5dbQam9X0jF7DEuJvdUItPIMj2D2 8ZDjhhQJFeNyqQOi02JzoFx5Kx2hfyqAuoAih/KeJAK3t/ha771sLC3pi1DeUhwxVRiF 9/iQ6NkHA47vsEsZ2Tl7BU0G13wAuZtxRxVCb6yhix5INR8JKJEsY1rHWI+KVd/0i0pu 9dSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=sBayUxRV4uPcA67ScjufKHzSC2Zb9c963r0CFb87BtI=; b=dkTOSCTkLb8Hqx8dku+cFiu5xZ0HlFruDBMCCEGH/pJR1gCBMUamGvsiDSiT3b7wmz uI2YGq9m67R/o9Gfozx9iTe1sG1d/WfI7a0IJd90Pw1QSD7ym2jJ2rms2lIGeFdcQcCc yRxBO8/GecTyCGw0huTVCU1c2DRhrnjCdo9GQavJgLUDAF6B920Wrw8iPQnmC3CT7bmv tKrmdMYkTquGAIW29g7VrcvD2E6IFoFybstl7R3JVX+zIWhDhdTklosC2e/qHD0oK1k7 Q1z94PW7MoBrzHasbHTYH6JhOcl4YCAj4tQmJeFYYCfRnrbf18zcTrLx17UDQ2KTtWss PbRA== X-Gm-Message-State: ACgBeo1rgUcfLOyhNB/6hHZ1HMjv88n6GL8TM2BHiYdpgM2lcZPy1rvG xVdpJOUTkMIrWsQ+ToEuUuG/cA6f+2rR7tD1 X-Received: by 2002:a2e:9941:0:b0:247:dce8:b0ec with SMTP id r1-20020a2e9941000000b00247dce8b0ecmr871902ljj.404.1660290158243; Fri, 12 Aug 2022 00:42:38 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id b19-20020a056512071300b0048b16fb79a0sm118602lfs.214.2022.08.12.00.42.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 00:42:37 -0700 (PDT) Message-ID: <721ccb76-c162-30ee-68cc-3316a2d62554@linaro.org> Date: Fri, 12 Aug 2022 10:42:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 3/4] dt-bindings: PCI: microchip,pcie-host: fix incorrect child node name Content-Language: en-US To: Conor Dooley , Daire McNamara , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Greentime Hu , Palmer Dabbelt , Albert Ou , Lorenzo Pieralisi , Conor Dooley Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20220811203306.179744-1-mail@conchuod.ie> <20220811203306.179744-4-mail@conchuod.ie> From: Krzysztof Kozlowski In-Reply-To: <20220811203306.179744-4-mail@conchuod.ie> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 11/08/2022 23:33, Conor Dooley wrote: > From: Conor Dooley > > v2022.08 of dt-schema improved checking of unevaluatedProperties, and > exposed a previously unseen warning for the PCIe controller's interrupt > controller node name: > > arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dtb: pcie@2000000000: Unevaluated properties are not allowed ('clock-names', 'clocks', 'legacy-interrupt-controller', 'microchip,axi-m-atr0' were unexpected) > From schema: Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > > Make the property in the binding match the node name actually used in > the dts. > > Fixes: dcd49679fb3a ("dt-bindings: PCI: Fix 'unevaluatedProperties' warnings") > Signed-off-by: Conor Dooley > --- > This is another one Rob where I feel like I'm doing the wrong thing. > The Linux driver gets the child node without using the name, but > another OS etc could in theory (or reality), right? Yes and we had such cases when renaming device nodes caused regression. My interpretation is that node name is not part of ABI, so anyone depending on it made a mistake and they need to fix their stuff. I think actually that is really poor coding and poor solution to parse device node names and expect specific name. Other folks interpretation is that we never break the users of kernel, regardless what is documented in the ABI... so it depends. :) Here however it is not a device node name, but a property name (although still a node). Bindings require these to be specific, thus such name is a part of ABI. For your case, I wonder why it was called "legacy-interrupt-controller" in the first place? Node names - also for properties - should be generic, so generic name is just "interrupt-controller". > --- > .../devicetree/bindings/pci/microchip,pcie-host.yaml | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > index 2a2166f09e2c..9b123bcd034c 100644 > --- a/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > +++ b/Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml > @@ -71,7 +71,7 @@ properties: > msi-parent: > description: MSI controller the device is capable of using. > > - interrupt-controller: > + legacy-interrupt-controller: Best regards, Krzysztof