Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp674311rdb; Mon, 15 Jan 2024 09:43:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IE13bsQu5pDBVS3itHY0TqKyOB7HvK+390c2YLlbjK3DcAO1gUsfh1Oa2Azsf/YnGcIJ+q3 X-Received: by 2002:a05:6512:b19:b0:50e:6e7a:fabd with SMTP id w25-20020a0565120b1900b0050e6e7afabdmr3914272lfu.1.1705340634649; Mon, 15 Jan 2024 09:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705340634; cv=none; d=google.com; s=arc-20160816; b=UMNk8+V3jnzsB1+8/DfV94+8GHvWZXKSVvBWJYOEZ6P1w0cO/PEreaQTb/f8OR9BRR w0vjYxWiXYeOR42Ci5IrZuCn4vMPQaQgn2hNFqgsxRUTMPWDdtXA6PpPWUM1IQbqogBV C3V5HaJvCD0cpnlIqQWomGY3BzJEgtX/QnVEPFigE83dS+m1YZ+Y6MB7s/6iXbb62IeS Vp+5RQVVDxKJYZSifamxM2khOslhNaC4frkhPHs9fw/yLa37asmkrg/j3GRfdzeJsjVG i8zI7NoBi5Bf21M8SvqJsWmH6jjj7y0FLXhQ4YN4hCdHuwBk+t/0LcGWMBXKS5GMzoL7 Zvhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=k5V5Axj9BuX2j0cmyCtkLqZpsdnkuUYuyoK7qy7tWo8=; fh=vOXPsaLKx0DNX2nC75YA2bT9nIjP9zVyNcKuuOyMyzA=; b=uO1wHtnoa87ddOFnW3Z0o7pb51rk3TFjX3qql2lvutRHjOr/DLZbQaELiPVUtDdAFn gbAFCOZmP+ki6yY5IX9S7ORAAG4cYEWlGdFfmMu1VM6+SDKH+jWS/rg6jcOeQRsytLjx PXKLBF7owwuqafTcAWtW3y2z6dpxEYf460zggoyGZkTGX1sUJSiCE5PCxpDXRfAC32LX VRpycZUH3zUWOx8tf8s2JsBIDp85TBr1xYGSF0NhNcd0ynRFWI45+nKMV36bbNqkJUBl r4PUGmxKJGJgTXCxYC3Ij5WhGq86e91Aoqe91cyG5QX06kHkR2FtZoMgrI/JGx8NSvzp nVZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K9z2HeYX; spf=pass (google.com: domain of linux-kernel+bounces-26326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ck11-20020a170906c44b00b00a2bdcecb0f0si4050094ejb.122.2024.01.15.09.43.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 09:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K9z2HeYX; spf=pass (google.com: domain of linux-kernel+bounces-26326-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26326-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F48C1F22BC4 for ; Mon, 15 Jan 2024 17:43:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E3C11804E; Mon, 15 Jan 2024 17:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="K9z2HeYX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BF3717C98; Mon, 15 Jan 2024 17:43:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E850DC433C7; Mon, 15 Jan 2024 17:43:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705340623; bh=TNNXHlCOpAGGqgmgfpLzL9G4VoowSCtm3Fdz6y9uqF8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K9z2HeYXg8Ri8q/JdndsnZnWUOsgcOP7Mc1/4aLtm0m2gjnxLbig+qTSTIjOg8KEK 8op721GbB2BH0EJhV5tWHjK6/i5UqFz2714NB0xtnWP6dYPdAiH8wJjKuNi/u0EQzP RFFYTPYzg8TDNvA6zgH3BdIVGR3/B8k4r6/Xc1XhJv9ifxFPgszGc0DEmE2Aq/tT+i QDy7y8bb31DhKpXgEM8qv6D8fs1bcwp/dn4Fl1GylqrlP8Jnw6pQoeZ4p4TeIl9SQK Nq0We2m3gt4YLjnY4ZDUlepnvwLFJABoFv6mbJXcRbWignsxt0plzu2XKL+hQYRZu0 GAN8whVDoam3w== Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2cd703e9014so79591781fa.1; Mon, 15 Jan 2024 09:43:43 -0800 (PST) X-Gm-Message-State: AOJu0YwjbvV9weYzkJJeuhxwjBEJYvHSOQZCzS/jQtA0kq04ONbDdxtX UqbmUhTdHP2dzpxWl/53VtfAtRFUJTRbBxtMRg== X-Received: by 2002:a2e:b0d9:0:b0:2cc:f31b:56ea with SMTP id g25-20020a2eb0d9000000b002ccf31b56eamr2992580ljl.92.1705340622164; Mon, 15 Jan 2024 09:43:42 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220145537.2163811-1-andre.draszik@linaro.org> <170432630603.2042234.10993333941885772911.robh@kernel.org> <827695c3-bb33-4a86-8586-2c7323530398@amd.com> <20240115-fragment-clean-95ef01dd8b20@spud> <8c5afb4e52e0c5a6dd88f6b7eaa7bc2e97ba31ad.camel@linaro.org> In-Reply-To: <8c5afb4e52e0c5a6dd88f6b7eaa7bc2e97ba31ad.camel@linaro.org> From: Rob Herring Date: Mon, 15 Jan 2024 11:43:29 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: ignore paths outside kernel for DT_SCHEMA_FILES To: =?UTF-8?Q?Andr=C3=A9_Draszik?= Cc: Michal Simek , Conor Dooley , Masahiro Yamada , Conor Dooley , Mathieu Poirier , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2024 at 10:57=E2=80=AFAM Andr=C3=A9 Draszik wrote: > > On Mon, 2024-01-15 at 17:37 +0100, Michal Simek wrote: > > > > > > On 1/15/24 17:29, Conor Dooley wrote: > > > On Mon, Jan 15, 2024 at 09:40:37AM +0000, Andr=C3=A9 Draszik wrote: > > > > Hi, > > > > > > > > On Mon, 2024-01-15 at 10:20 +0100, Michal Simek wrote: > > > > > This patch is causing issue for me. Look at log below. > > > > > I am running it directly on the latest linux-next/master. > > > > > > > > > > Thanks, > > > > > Michal > > > > > > > > > > $ make DT_SCHEMA_FILES=3D"Documentation/devicetree/bindings/arm/a= rm,cci-400.yaml" > > > > > dt_binding_check > > > > > > > > It'll work if you drop the 'Documentation/devicetree/bindings' part= from the path, as > > > > it is implied since bindings can only be in that directory anyway: > > > > > > > > make DT_SCHEMA_FILES=3D"arm/arm,cci-400.yaml" dt_binding_check > > > > make DT_SCHEMA_FILES=3D"arm,cci-400.yaml" dt_binding_check > > > > > > > > both work. > > > > > > Requiring that is pretty user unfriendly though I think, passing the > > > full path from the root directory of the kernel tree would be my > > > assumption of the "default". > > > > I am using full path like this for years. > > I just just went by Documentation/devicetree/bindings/writing-schema.rst > which doesn't suggest adding Documentation/devicetree/bindings/. In an > attempt to make it more robust for anybody following this doc, I opted > for the current implementation. It originally worked only with the full tree path. It's now enhanced to take any substring for a match. As that is preferred (and shorter) that's what the documentation has. > > I can fix my scripts but would be good to consider correct path inside = the > > kernel is something what this patch should also allow. > > Because path above is correct and it is not outside of the kernel that'= s why at > > least commit message should be massage a little bit. > > I hear you, and I'll make a v2 to not imply the bindings directory. A follow-up, not a v2 because v1 is already applied. Rob