From mboxrd@z Thu Jan 1 00:00:00 1970 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 D233BC001E0 for ; Tue, 25 Jul 2023 10:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233440AbjGYKfk (ORCPT ); Tue, 25 Jul 2023 06:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232909AbjGYKfh (ORCPT ); Tue, 25 Jul 2023 06:35:37 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2267F18D for ; Tue, 25 Jul 2023 03:35:36 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-992f15c36fcso915706466b.3 for ; Tue, 25 Jul 2023 03:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690281334; x=1690886134; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xRSCjzoFlf7+1pwK2274OEG2qCHzv1zVFI3OEYWB7Ic=; b=L1ESNfLDThRmEQmyq3QCUnymgcDRa9+iMV1l0gch6YrnemwC+/tkPL+B7TmaO6Pvh/ 5cd2FDEeuJQZIe2/kkjbqTU/2w1ChrWHkTx17VDsvmmaxwtSdMzHv8SdYlfffCAvLpL4 cxK4SgaE4gUXapWGotW0u05hBwCqeOqqr8mV/isGLZ2NC/QJ4mKTs+EXHZhceS3HCwfT KQMmYBIfazv7GjgIue973VYyYpM1JrkbDjTTwfSc0+9WUkdHDR41tItjmPoQ3FzHg+V+ 74mH8j3bp0zDZxr+Vu30SMhl4s8eMqlBL9R681gqSTTacMQzTHLLYslGKHjsMmBwrSGi BRRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690281334; x=1690886134; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xRSCjzoFlf7+1pwK2274OEG2qCHzv1zVFI3OEYWB7Ic=; b=WDB9bd0iBuhCZwT5V98Z16pzfQFSzcqPErRf81DbvxZ4zFvaTxG5fF9swFbeSf+EC2 IqzqUJMbLf6AOSdC4mUvDr0BEGgOsy31vWfPj39W2y8yYX5Ak0Q58U77WEmFTqiRUdOu pwal2kApZ41tv68fusVpGulRHUNEDRGjQbPIfrh170MHb38YSLXsZbjFmJYwOaKRgFFr htEpgF/8erLNJzbEWeTf12qAHs45OP8JFWUCIoT8s8peFFz0W+McS1t0cQvR2gKWO6Mt aNi+xzITbfm/aKCpGmH2vTIhopxA6qB/GILk94drl9pxL5HJgLFAk+8m5oqU2J8yjuYH mdNQ== X-Gm-Message-State: ABy/qLarGznq3zqCkv+374tYXHmo3kS2p/vFirBMlnTTBPhFWQSHDQSq VovXjvqXaKiUaipPgxE4Td+nCg== X-Google-Smtp-Source: APBJJlEeAYXZil/XyuB5ylTiwIPKbvsDFmDdl0tv2VrAlD7DtAQVb1lRFLJxpnumFOyiReYDJEeKFg== X-Received: by 2002:a17:906:cc0e:b0:99b:465c:fb9f with SMTP id ml14-20020a170906cc0e00b0099b465cfb9fmr12834886ejb.8.1690281334516; Tue, 25 Jul 2023 03:35:34 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id dt19-20020a170906b79300b0098242730348sm8090252ejb.72.2023.07.25.03.35.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jul 2023 03:35:28 -0700 (PDT) Message-ID: <00980fa2-5f8c-d616-ef3f-957090c25d48@linaro.org> Date: Tue, 25 Jul 2023 12:35:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2] dt-bindings: usb: connector: disallow additional properties Content-Language: en-US To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benson Leung , Guenter Roeck , Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Prashant Malani , Wayne Chang , devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org References: <20230725102325.76336-1-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20230725102325.76336-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/07/2023 12:23, Krzysztof Kozlowski wrote: > USB connector bindings is complete, thus no additional properties should > be allowed. Add missing 'reg' property and change additionalProperties > to false, so the schema will check for anything not unexpected. This An MIT linguistics professor was lecturing his class the other day. "In English," he said, "a double negative forms a positive. However, in some languages, such as Polish, a double negative remains a negative. But there isn't a single language, not one, in which a double positive can express a negative." A voice from the back of the room piped up, "Yeah, right." Obviously: "... will check for anything unexpected". > also allows to drop the 'reg' from other bindings referencing the > usb-connector.yaml and make it required. > > Signed-off-by: Krzysztof Kozlowski > Best regards, Krzysztof