Received: by 2002:a05:622a:4ca:b0:41c:c224:f26f with SMTP id q10csp532846qtx; Thu, 16 Nov 2023 10:39:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/siNlFsn/1gJa8cCoh6y58eHyH92KglSJMddnBKZlawLOJAK9EtENAuPS8gOkO39RVi1S X-Received: by 2002:a17:90b:716:b0:27d:469b:8847 with SMTP id s22-20020a17090b071600b0027d469b8847mr3537666pjz.3.1700159953982; Thu, 16 Nov 2023 10:39:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700159953; cv=none; d=google.com; s=arc-20160816; b=dnwMqzOVoifdVL7upuiGeE6gRX7wTduY5lgIHhRrBKJAvTaGRJdFx1fvdTjoy1mOM7 j1FZRKW8yyEzaek8iGb6tQCFZD+ZuaCfuPg29sfN6yYZNaX0HfVxkTGj47EYjKJsBgL7 Qv3xeCwLH9hWoaOwrh7eMx5ThMHJr+V5y+e+8qYh82G0p8bQwtbPi1oO7Q6p+4/9xixR fRrjGn9mzcKE48DzlhOj89uEDgUfALcL4wNLPl8V63OH9fy1SuJTcAM8pFiHeUflrLVX SzlyCIfE+f0Z+Xaj45f9xca9myacSuIGYlNcwb2bck4G2s5TE/K0hV9ijsks+sQzSeVY U7cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=224i3tisk6HMySYqHPl55WwKC30OThQ41QzggH7xnVY=; fh=zmtvnhgASjwfyRDkJGiR4XJovdPDVMOQoYZfqrmj8xY=; b=Jr6twoNDAczuMAcPKcVVzyYJ2/Og116/FgCeUrcgUUeeClgZE3i5ZrPoKsQhJN6FrS qpYYoS+HbiF3gosgsW10/QIp1zF5AMDENNhztRbsgd9aH5JuOjINIdqBjy6O9qk0nD9y vc1bLr1CjJAOSXxUuEc6lawq/1cu6LV3nsZ6u9NAfD783b+zOFmJxd+MBxo+B/LI0YZF 7f7zjA3mP48cHx0AgVZhe46T/ofNbCOTtasiQ+vdW9+b/0lHI7EoRMa/ykjP7FZ0MU5D L+meWpjKg+0BKXd3/sOBVuxReMauioUa1VqPHmbRcWJlSO47CdXvOxLKUNwxCSEalAaf oQaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-138-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b16-20020a17090a991000b00278f81e54cdsi2563637pjp.19.2023.11.16.10.39.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:39:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-138-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-138-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7AE24280639 for ; Thu, 16 Nov 2023 18:39:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 293337E for ; Thu, 16 Nov 2023 18:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-crypto@vger.kernel.org X-Greylist: delayed 581 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 16 Nov 2023 10:10:56 PST Received: from 14.mo582.mail-out.ovh.net (14.mo582.mail-out.ovh.net [46.105.56.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95C4E195 for ; Thu, 16 Nov 2023 10:10:56 -0800 (PST) Received: from director10.ghost.mail-out.ovh.net (unknown [10.108.16.176]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id A3F1324519 for ; Thu, 16 Nov 2023 18:01:13 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-6c6xr (unknown [10.110.103.234]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 697E51FE0D; Thu, 16 Nov 2023 18:01:12 +0000 (UTC) Received: from RCM-web10.webmail.mail.ovh.net ([151.80.29.18]) by ghost-submission-6684bf9d7b-6c6xr with ESMTPSA id wLPAF+hYVmV/XQEApgZwCw (envelope-from ); Thu, 16 Nov 2023 18:01:12 +0000 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Thu, 16 Nov 2023 19:01:12 +0100 From: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= To: Krzysztof Kozlowski Cc: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Antoine Tenart , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] dt-bindings: crypto: convert Inside Secure SafeXcel to the json-schema In-Reply-To: <3f9f31e9-ead3-438a-bbd9-818b98ba1b3b@linaro.org> References: <20231116130620.4787-1-zajec5@gmail.com> <3f9f31e9-ead3-438a-bbd9-818b98ba1b3b@linaro.org> User-Agent: Roundcube Webmail/1.4.15 Message-ID: <844c8a5387ca4c5847bf8cfa82b8164c@milecki.pl> X-Sender: rafal@milecki.pl X-Originating-IP: 31.11.218.106 X-Webmail-UserID: rafal@milecki.pl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6406651946374703905 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudefkedguddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeggfffhvfevufgjfhgfkfigihgtgfesthekjhdttderjeenucfhrhhomheptfgrfhgrlhcuofhilhgvtghkihcuoehrrghfrghlsehmihhlvggtkhhirdhplheqnecuggftrfgrthhtvghrnhepvdehieeltdejheeltdfhffetgfetheejhefhffekfedukeeltdfhvdethfdtjedvnecuffhomhgrihhnpehrmhhilhgvtghkihdrlhhotggrlhdpshgthhgvmhgrrdhphienucfkphepuddvjedrtddrtddruddpfedurdduuddrvddukedruddtiedpudehuddrkedtrddvledrudeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeorhgrfhgrlhesmhhilhgvtghkihdrphhlqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdgtrhihphhtohesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheekvddpmhhouggvpehsmhhtphhouhht On 2023-11-16 15:42, Krzysztof Kozlowski wrote: >> +properties: >> + compatible: >> + oneOf: >> + - const: inside-secure,safexcel-eip197b >> + - const: inside-secure,safexcel-eip197d >> + - const: inside-secure,safexcel-eip97ies >> + - const: inside-secure,safexcel-eip197 >> + description: Equivalent of inside-secure,safexcel-eip197b >> + deprecated: true >> + - const: inside-secure,safexcel-eip97 >> + description: Equivalent of inside-secure,safexcel-eip97ies >> + deprecated: true > > Wait, some new entries appear here and commit msg said nothing about > changes in the binding. Commit says it is pure conversion. You must > document all changes made. I may make many mistakes but not one like that. I am phobic to adding new stuff silently. All those entries were documented in .txt. >> +allOf: >> + - if: >> + properties: >> + clocks: >> + minItems: 2 >> + then: >> + required: >> + - clock-names > > Did you test that it actually works? Considering other patchset which > you did not, I have doubts that this was... Sorry, I really have bad experience with Python due its maze of dependencies and unfriendly feedback. I just wasted half an hour debugging error like: Traceback (most recent call last): File "/home/rmilecki/.local/bin/dt-doc-validate", line 64, in ret |= check_doc(f) File "/home/rmilecki/.local/bin/dt-doc-validate", line 32, in check_doc for error in sorted(dtsch.iter_errors(), key=lambda e: e.linecol): File "/home/rmilecki/.local/lib/python3.10/site-packages/dtschema/schema.py", line 132, in iter_errors self.annotate_error(scherr, meta_schema, scherr.schema_path) File "/home/rmilecki/.local/lib/python3.10/site-packages/dtschema/schema.py", line 111, in annotate_error schema = schema[p] KeyError: 'type' which turned out to be a result of some outdated examples files. I tested that binding thought. Still after another look at that allOf I found one more corner case to cover. -- Rafał Miłecki