From patchwork Tue Apr 18 15:06:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 674660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FFF6C77B75 for ; Tue, 18 Apr 2023 15:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232267AbjDRPHY (ORCPT ); Tue, 18 Apr 2023 11:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjDRPHU (ORCPT ); Tue, 18 Apr 2023 11:07:20 -0400 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAED610E6; Tue, 18 Apr 2023 08:07:09 -0700 (PDT) Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-6a60460a23dso188456a34.0; Tue, 18 Apr 2023 08:07:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681830429; x=1684422429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VH0juF1Ay9WqDgJkMzXt8/4BdR/G5VxOS4AZ5Dc0VG0=; b=S8XTZFP2Sou81ujmCL9gsRosY+uYdXjg59lvHUSDh2rclx4R6dBpcDGz/TnMNN2lOb aeHOzxmmWNRfmEkIZnTuYnlSR/37w3vI6oEUegcOTWwZtLSHGFfOdu/rqq4gm0liLmOA IZkIRNLO+oETGjtl4rRz+wCNSte5v2HJixDKRcHPVaHrhfbCEA+2J0UjqSwssWhi0Hsp Sa1tEiiZcCio8M8FD1/AfSUB1NjxCwZFJYBt4Q7PjdjXor9AUrKtGoVh6TpceNDl+lz2 au9WbuhA14JfW+e73Sx3LEe7y26XWx/Z5DfRv1lOPaI2gMZZi+y6H9nMY8C7OkvPaPNv 6kdw== X-Gm-Message-State: AAQBX9f4FL02M23sgtx1hFHqZOfmgRlWPsaGgUMofN9PG/gZhsoY+0Jr UY4FxC/ZOaejCuk7ic3YYsv7ymZNdA== X-Google-Smtp-Source: AKy350Y+FFNVhEH8J/xbnSRbbO1WGuy7IynVY3++C2eC62dOzu64tMYXqP0pSiyYkAJ3MP+9jkpkqA== X-Received: by 2002:a9d:6f90:0:b0:6a4:3c9e:d5a9 with SMTP id h16-20020a9d6f90000000b006a43c9ed5a9mr1142369otq.35.1681830429077; Tue, 18 Apr 2023 08:07:09 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id i18-20020a056830011200b006a44d90de05sm4010988otp.69.2023.04.18.08.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 08:06:52 -0700 (PDT) Received: (nullmailer pid 1528776 invoked by uid 1000); Tue, 18 Apr 2023 15:06:36 -0000 From: Rob Herring To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Andrew Lunn , Florian Fainelli , Vladimir Oltean Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: net: ethernet: Fix JSON pointer references Date: Tue, 18 Apr 2023 10:06:27 -0500 Message-Id: <20230418150628.1528480-1-robh@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org A JSON pointer reference (the part after the "#") must start with a "/". Conversely, references to the entire document must not have a trailing "/" and should be just a "#". The existing jsonschema package allows these, but coming changes make allowed "$ref" URIs stricter and throw errors on these references. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 +- Documentation/devicetree/bindings/net/ethernet-switch.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 00be387984ac..b7ac69dafbe9 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -205,7 +205,7 @@ properties: duplex is assumed. pause: - $ref: /schemas/types.yaml#definitions/flag + $ref: /schemas/types.yaml#/definitions/flag description: Indicates that pause should be enabled. diff --git a/Documentation/devicetree/bindings/net/ethernet-switch.yaml b/Documentation/devicetree/bindings/net/ethernet-switch.yaml index a04f8ef744aa..3a9bac7b1b98 100644 --- a/Documentation/devicetree/bindings/net/ethernet-switch.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-switch.yaml @@ -51,7 +51,7 @@ additionalProperties: true $defs: base: description: An ethernet switch without any extra port properties - $ref: '#/' + $ref: '#' patternProperties: "^(ethernet-)?port@[0-9]+$":