Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp549809iol; Thu, 9 Jun 2022 08:54:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybhPKHIDGIbJW8+Sey/FSj6Ljb0uDMNDuR3lUcA/3QddRRRWd1YGPZGez0muOAAQD+oZ5o X-Received: by 2002:a17:90b:2482:b0:1e8:a80b:c5bf with SMTP id nt2-20020a17090b248200b001e8a80bc5bfmr1782528pjb.14.1654790071299; Thu, 09 Jun 2022 08:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654790071; cv=none; d=google.com; s=arc-20160816; b=u6C1yKdh0o0yiYLkVMWbLN0cxw6ShJn7ve3wAWRkExzX12BT9bd/jMCQfF427/2QxP OykGM3heBlXTE0yPEenF9kEBIfQAWJU4dgzXJSrBLUnI1g/wVNWf4vTODBVc4ICH5H69 SkoIhAVFaYOlPTKLao/G5qYnBh40xcY+ITRVXbzpq3zxigFh6O9RMaVwA0239oFQXdH6 bnMPR+swUuyfzIWufQMocMDV7LO3dASLqDmmBZKF5rMa9407p/nkr+oQQGV7XIr3/2xR RL4KjFf5lLuPGiXjBHYeKXAGsrf4IR3gUGGkU4nGGSC6hkojFTFSsTEX58t2rbM05Hc0 SgoQ== 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; bh=7CNQXhlme5eQIHXbnsgkUH7CMFXIeljNmFCXWsWvWE4=; b=ikbCag48/e93CcajVniLozme2prrtxGOwBDGvWephNppP8jEp2W25rbdbUV0hm0/1a 4znLWyZiPivE1Y0P4zKSbYunKbyCrGBqfIlQj3ENi60i0Q6zFnf9Yx3q72d8JUqjcqQ3 jBTDBNJ8dcHs2ReFBnpcN+XWnLHUM8ue+FdnLX4ldYJqbf7YKB752ew7nploN1EL7usL j5xd+tTP5xiAWtwk4YKJUcm2ZTr/8R7bCfG6BP1HLJHPyV6EpIIWgyeRWYlj0QZRx6S4 rhlfjzYgsIT19xgY7FVp/aBNCNeJBeOrrshl0MAj5xaW43IigvPu+9/d/6azWh+QU/ZS kxMA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q28-20020a638c5c000000b003c67a501c74si34422633pgn.636.2022.06.09.08.54.18; Thu, 09 Jun 2022 08:54:31 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344316AbiFIPRn (ORCPT + 99 others); Thu, 9 Jun 2022 11:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344326AbiFIPRm (ORCPT ); Thu, 9 Jun 2022 11:17:42 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 866ED49F20; Thu, 9 Jun 2022 08:17:41 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id p128so2984972iof.1; Thu, 09 Jun 2022 08:17:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7CNQXhlme5eQIHXbnsgkUH7CMFXIeljNmFCXWsWvWE4=; b=6MG45JKnkbBSYHM2m1QGG/M7OQ7gEUAK2TycdbOCi27CbKK6/W77zRmwvBN27ho/Z5 QxvDB9d1Qqs7QTVQ9HtLkFRxBZFJWTo41tpwx/tMng+fjRCUzl6YnfYLd5zsnSTwVrm+ q+2j8hiSv48gKt22e9XnA1q1LMGLzmFRm5RN7Ub7rDUGezdy3SmDb+uwubusOshQ6ldC sfvv0sATYvaqxc8531pjjFJAl2WevZ94gE06Gnu81+1OCMvPMq7Msy3iMLiFXam8Rm6v ao8yrFrJK7V9/EEac3gQVdCREnccSZUBqDR5OIb+JvwS0RZlzT10dLtiixqRj81kGr09 8CAA== X-Gm-Message-State: AOAM533XFQ5szRGATNhVDcOw5ZvGNR7rtG2JnHEmg1WicvnQVzrEZfy4 bSBT+X4rtoAuDpnLcE4B+Q== X-Received: by 2002:a6b:2bc8:0:b0:669:af77:34bd with SMTP id r191-20020a6b2bc8000000b00669af7734bdmr1442822ior.182.1654787860556; Thu, 09 Jun 2022 08:17:40 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id f6-20020a056602038600b00665862d12bbsm9438447iov.46.2022.06.09.08.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 08:17:40 -0700 (PDT) Received: (nullmailer pid 3812662 invoked by uid 1000); Thu, 09 Jun 2022 15:17:38 -0000 Date: Thu, 9 Jun 2022 09:17:38 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: arm@kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, soc@kernel.org, Arnd Bergmann , Dmitry Torokhov , Olof Johansson Subject: Re: [PATCH v2 01/48] dt-bindings: input: gpio-keys: enforce node names to match all properties Message-ID: <20220609151738.GA3812591-robh@kernel.org> References: <20220609113721.379932-1-krzysztof.kozlowski@linaro.org> <20220609113843.380260-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609113843.380260-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 09 Jun 2022 13:38:43 +0200, Krzysztof Kozlowski wrote: > The gpio-keys DT schema matches all properties with a wide pattern and > applies specific schema to children. This has drawback - all regular > properties are also matched and are silently ignored, even if they are > not described in schema. Basically this allows any non-object property > to be present. > > Enforce specific naming pattern for children (keys) to narrow the > pattern thus do not match other properties. This will require all > children to be named with 'key-' prefix or '-key' suffix. > > Removal of "if:" within patternProperties causes drop of one indentation > level, but there are no other changes in the affected block. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/input/gpio-keys.yaml | 157 +++++++++--------- > 1 file changed, 77 insertions(+), 80 deletions(-) > Reviewed-by: Rob Herring