Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4566074rwb; Tue, 6 Sep 2022 09:13:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR5reBMsEo8ymaYgWaNZMsBoLaAscef6reGn522gKxKKGcL8aY0ELxL8LuSlbz2HcIy2wR7Q X-Received: by 2002:a17:907:c14:b0:741:6823:11c with SMTP id ga20-20020a1709070c1400b007416823011cmr31393472ejc.295.1662480783564; Tue, 06 Sep 2022 09:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662480783; cv=none; d=google.com; s=arc-20160816; b=opP73C5E9qYdJSLEFVG/NF+4ea6XVfYse9XXXaGfx9+yEZ0gdzHgWGjNnx71WCCNWN wsCNElNiP7OvsXP9A8dMW54A5IBf/sRD7oFZwl2HXxoKII7taySyRD/79Es1ObwniOjt 5eu+Gi2nhVsmbrookbIPxvUJLsR2Rlyg3L30+fs6E6/NJTePAkGGW3LdQ+HVHOuNNFlB hfkry524LC340/+NMmUWLfvN16hyyih2Skr2VMFtUuODa/xMGvppY3HHQjUSBD/CEGJC FIhZnm7d9Hd9SnRm56YeBfN+4eCeGr/mNEJE0BGl4DyfLR8c/vHuodJbPXg7am9vHz0s eLOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UR3tpVQB87hjnz6CIQkDKO5srhiUjCJi4qcya16w4tU=; b=FUgO7cK3eKivOkE/lwMIuJ1fxekfl3ZkSN8nq8Ea9s6UtZQCdrJnOHUsBWbal7VSmT 3T/egdalAPqmq21A70uKAweIkgckGa6KLzNjyXfFXwG1L9QUxlkOYiso3ytYFM7I5Mxr +uZyl7cQVu3xPVRqBrUlEoyx2jDxy/Oi3/w6ddZ6BUa2zAGY+THUv61/7H6PeZoet4Na o51Ctm8itRwJy+b2kIHf7r9nlwGRGE28tOWAuqnXG30JATX8gr6s10+bKyKxtAk9/xLg 7fzjmreHwNcEgIB/hYfyaeDqLRk1e3/V7iSmdpS8+8d3VMAwIpHb0KXCm6sTV5H9oiRZ zW0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bC6sA/fO"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a056402194e00b0044815af49cbsi1249867edz.265.2022.09.06.09.12.37; Tue, 06 Sep 2022 09:13:03 -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=@redhat.com header.s=mimecast20190719 header.b="bC6sA/fO"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239258AbiIFPWV (ORCPT + 99 others); Tue, 6 Sep 2022 11:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239046AbiIFPWB (ORCPT ); Tue, 6 Sep 2022 11:22:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34AB898369 for ; Tue, 6 Sep 2022 07:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662474755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UR3tpVQB87hjnz6CIQkDKO5srhiUjCJi4qcya16w4tU=; b=bC6sA/fOJt4gpLIkYWbON7Nakfh2zGjGZhkw+rv0AWrWXF0j2ZiqPbHxpK4dY0zDQJwAjs J7fmcRRnNLF6vnfYwh4+PlCyKK4d9IhSAziKkGdYn/5vPNeyFS8OSh53fB7RZmLVbJ7AKj bv8F5Zyf2UJ81LJPWH79EIzvzVCRcAc= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-74-cTUWG6j6Mmi2IdmWUOucRw-1; Tue, 06 Sep 2022 10:32:34 -0400 X-MC-Unique: cTUWG6j6Mmi2IdmWUOucRw-1 Received: by mail-qk1-f198.google.com with SMTP id m19-20020a05620a24d300b006bb85a44e96so9399114qkn.23 for ; Tue, 06 Sep 2022 07:32:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=UR3tpVQB87hjnz6CIQkDKO5srhiUjCJi4qcya16w4tU=; b=dK3ubWQh7TPWoYmvUTIA/iD1bMg/9nxVotpdnB8FFIsJg3TxTZ6s5GVMK9LoaAAyoP 18r1Pkx2j/4BSFoejiI9umej4zayt+qOkgq5ahornBRCCnKuEGgu1TkSAdtYOt8mXVvC RXBg3UIPMhA7SxiOUnmO8tSsDg2D2aTt9ODnmp4Gk0Az6/woWYXL0hs+v5sm+FgVZdI7 rMlOd7yrvskWv031q006iWlO7FIWcWqV+2egSXXbD642BMEvJZP6K27lYsvW7FhR7ZeR sCa8RvrL871hw6rT7YrpiLDkVAhYCQbFNk4xRupFhctMKng5rfeh4COTdvsSJ2+cOmNJ T8uA== X-Gm-Message-State: ACgBeo3r9jpmNyrarWPjycGMohWI1OuaIDAX4U1VID7t89Ibth9MEQDG LicczRM0/kYUbngC1O4PtYNRsCNSsM41Yd5lUP+eX9zUTKxcvki5k42AgeD90VuBML+ZOZVp8MV OQverfBwQ5k0ZsvRrRvjwyngW X-Received: by 2002:a05:620a:1902:b0:6b8:d90e:cef7 with SMTP id bj2-20020a05620a190200b006b8d90ecef7mr35967911qkb.131.1662474753941; Tue, 06 Sep 2022 07:32:33 -0700 (PDT) X-Received: by 2002:a05:620a:1902:b0:6b8:d90e:cef7 with SMTP id bj2-20020a05620a190200b006b8d90ecef7mr35967879qkb.131.1662474753663; Tue, 06 Sep 2022 07:32:33 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::a]) by smtp.gmail.com with ESMTPSA id r3-20020ae9d603000000b006af0ce13499sm11260719qkk.115.2022.09.06.07.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 07:32:33 -0700 (PDT) Date: Tue, 6 Sep 2022 09:32:31 -0500 From: Andrew Halaney To: Krzysztof Kozlowski Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@somainline.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dianders@chromium.org, johan@kernel.org Subject: Re: [PATCH 1/3] regulator: dt-bindings: qcom,rpmh: Use additionalProperties Message-ID: <20220906143231.4xqg43uz2emvbe72@halaneylaptop> References: <20220902185148.635292-1-ahalaney@redhat.com> <20220902185148.635292-2-ahalaney@redhat.com> <33c19838-2e44-2164-11c7-b14be5908809@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Mon, Sep 05, 2022 at 06:53:23PM +0200, Krzysztof Kozlowski wrote: > On 05/09/2022 18:45, Krzysztof Kozlowski wrote: > > On 02/09/2022 20:51, Andrew Halaney wrote: > >> Right now, running make dt_binding_check results in this snippet: > >> > >> /mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml: 'additionalProperties' is a required property > >> hint: A schema without a "$ref" to another schema must define all properties and use "additionalProperties" > >> from schema $id: http://devicetree.org/meta-schemas/base.yaml# > >> SCHEMA Documentation/devicetree/bindings/processed-schema.json > >> > >> /mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml: ignoring, error in schema: > >> > >> Which results in the schema not being properly evaluated. Swap out > >> unevaluatedProperties which doesn't seem to be doing anything for > >> additionalProperties. > > > > unevaluatedProperties were required due to usage of defs-allOf > > (ba5d99609a5e ("regulator: dt-bindings: qcom,rpmh: document supplies per > > variant") > > ). > > > > Are you sure that it works correctly with additionalProperties? > > > > Judging by errors it doesn't.... > > What's more - I cannot reproduce that error (latest released dtschema)... > Ugh, I thought maybe I had ran into something here that was only in linux-next, but no. I've had my environment borked the whole time I was working on this series. So sorry about that. I'll send a v2 once I rework things with my environment working properly. Your comments here make sense to me -- unevaluatedProperties makes sense here based on what I see in the example binding... so this patch and the next will get dropped entirely. Thanks, Andrew