Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1145836imw; Tue, 5 Jul 2022 04:41:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u13TxrSFWo4vv47tQ6cR0M+3Es/IkTiUjwXB/GiawxvUvy1TcEaFyRuRug83bhRk/u97Zy X-Received: by 2002:a17:90b:1b42:b0:1ec:c483:3eb7 with SMTP id nv2-20020a17090b1b4200b001ecc4833eb7mr44539943pjb.52.1657021307252; Tue, 05 Jul 2022 04:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657021307; cv=none; d=google.com; s=arc-20160816; b=Q6+IlBcZL8Fv8yEV1W/v0du8jEgYCq8V7pjcU4cGylrlldMmvE+GSFp0FcP5HxIaZu XIwTM6rwIzmGiMp8U65jPQxUf6AdxuBfWSctm6JC8OuQOXqBFuli47125b3+S+n+5Dda CxT8vCZPpjf7NKt+uCo0AMxsmUZ22DAVh6iXtHAU/v+J8XOWxoqKsQpSogNl/eAdtASy mzZrTsD6yzjG7hKkWYTjj54PlZGNh67V/5o3SEYnW2g7YM/1mkyNVMfTxjnOEtumVSuw 7Vt8tqxoD7UF7r/PZOn+3ZmGJzYOY2bgc4cY5z+lrznTWCyarG88ZqNKadYjIP5MB6dq Hi2A== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=XqGBUv2bVR1BBSn8EmBr/HQnR9EoIw7gIb/DairnNFs=; b=ZfTfHL8w1vUdj7CsoGG7LjlWbT+Qk48rXdPH5iB+S4V3Knn6eDW3IgI8qeY6bIsykc 6g9CZd0inNHBxb+iQLjzMJwt6f8BI7wJ+IPj1jZHbC+pZt3TgCwNX2phQFww4XvvbpXz rmEIbrMJI0CnIC6BYU59PWUdNzFxMskXcFgmPh5tUFsXZo54FrMs3cbPZcgMGW8yvZgP vLSJ4ZSBpMfuqnfxC1j2Ou52CEVj/qBGwXihYttuEHzhRwWzkKVJpUT2RhEn8del9B2b Z+7bWVZMFajNmUGoIEcUZGUBvMPkaYs8UDJ9xH/PX6M1m9DwdeP79whIZPMYls9xSH54 vjlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PFKl7oPU; 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 r6-20020a170902be0600b0016bda4273bdsi8913402pls.620.2022.07.05.04.41.33; Tue, 05 Jul 2022 04:41:47 -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=PFKl7oPU; 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 S229885AbiGELjw (ORCPT + 99 others); Tue, 5 Jul 2022 07:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbiGELju (ORCPT ); Tue, 5 Jul 2022 07:39:50 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24E413F1C for ; Tue, 5 Jul 2022 04:39:49 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id r9so14141356ljp.9 for ; Tue, 05 Jul 2022 04:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=XqGBUv2bVR1BBSn8EmBr/HQnR9EoIw7gIb/DairnNFs=; b=PFKl7oPUIaa88zrn/8CuiC9DcDwgPU9BOA7TQp+ajBf9ok1bO4vKFtl3kvuBJPJOI9 dGDn0fLKhP3juMGTXuKIiFXoOdfxnMm2KHHC16ifNTHxSOhAuF0P6WHNEOEdyTJeNFS7 Sojpv2Dk21v+58u6CN8JG2J6KojXC/82auKbdYzsNcLeRI2+qPR6/pA8QCHkOHJfTX// doEauC0AzOHgVVSRHJCNmRebm4ur3hyPl4J51ByC6D/TgttQF/ZKMahwaA96xbXxp81R X3yTggTyd0ULkcukRCKknDBWI/aQaR9f04EdfHXP1jDVcZ30YYXsf6mbxSzj/iIUpjqS lXmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=XqGBUv2bVR1BBSn8EmBr/HQnR9EoIw7gIb/DairnNFs=; b=KEwQ8BroNMu4eXc7razDmUjodu8UBokxpKd7+cCbOdTP9iSTxZYlPT8+doHqpD3IRj wBkvo82Mhn6ZWCV3s135/GzTz4aY2J5jl3MHSdRvFyCn6WLkz0+ukgpAa1C0gIEGt3Ep aKYRpQcOs63TweABh5FdPaziIzTV3CcJj9sITAcmQa12yZQekf+pRCHJAA0d0B39da2j 6F+1YnreON4DGKWeB6KV21IArKpVVdoPa4zWiLHYE67Dh3YCRWsNRHLYamLpOZB8mdN4 R/3JQnL8So0NhIu6cxUbEu1Auz33y755iKRqa/chfD+9WDadfb3+fjwkz/vojbejL5z/ cFKg== X-Gm-Message-State: AJIora8n80s5L53cjIe4cu0wsvihx4OecZiLDTsG/C9y8do6T3zabJnO SfkLsk7sL1YDIeTb4htz3Cqdz4eApBtCZw== X-Received: by 2002:a2e:bc22:0:b0:25b:c3b6:eb11 with SMTP id b34-20020a2ebc22000000b0025bc3b6eb11mr20157656ljf.122.1657021188242; Tue, 05 Jul 2022 04:39:48 -0700 (PDT) Received: from [192.168.1.52] ([84.20.121.239]) by smtp.gmail.com with ESMTPSA id s8-20020a056512202800b0047f750ecd8csm5663357lfs.67.2022.07.05.04.39.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 04:39:47 -0700 (PDT) Message-ID: Date: Tue, 5 Jul 2022 13:39:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3 01/40] dt-bindings: input: gpio-keys: enforce node names to match all properties Content-Language: en-US From: Krzysztof Kozlowski To: Dmitry Torokhov Cc: soc@kernel.org, linux-kernel@vger.kernel.org, Olof Johansson , devicetree@vger.kernel.org, Arnd Bergmann , Krzysztof Kozlowski , Rob Herring , arm@kernel.org, linux-input@vger.kernel.org, Rob Herring References: <20220616005224.18391-1-krzysztof.kozlowski@linaro.org> <20220616005333.18491-1-krzysztof.kozlowski@linaro.org> In-Reply-To: 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=ham 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 27/06/2022 10:17, Krzysztof Kozlowski wrote: > On 16/06/2022 02:52, 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 properly prefixed or suffixed (button, event, switch or >> key). >> >> 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 >> Reviewed-by: Rob Herring >> --- >> .../devicetree/bindings/input/gpio-keys.yaml | 157 +++++++++--------- >> 1 file changed, 77 insertions(+), 80 deletions(-) >> > > Dmitry, > > Any comments from your side? Are you planning to pick up the dt-bindings > here (patch 1-3)? Hmmm, I guess this should go via dt-bindings then... Best regards, Krzysztof