Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2110966pxk; Sat, 5 Sep 2020 08:57:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxahrTGI59wLV2tun4mrZMtrXNfpCHL/w1fTieIsl3jx5ohyqR5ubD1Oip1ZOW0B3zayMOH X-Received: by 2002:a50:e0cf:: with SMTP id j15mr14403653edl.285.1599321441693; Sat, 05 Sep 2020 08:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599321441; cv=none; d=google.com; s=arc-20160816; b=VTgwGisjp+Gc2SBg2W5lxGJ5AmYgIfM4ghIvrIU7L2NnwcJoorP9GkdIjxr6AxA5gK nC6GEn19LdUOBUxgNLf6tpRsTz0rtRgsawdqKFNIov/V4B4U8m1GcBI9uUYkw3Im11BK 0WZLgLwcvD9aLXfU4SmYqsj3diGJNRDuSenslVT8RpPw+Xs4wi6ZjPfKNkEBvjN4ddsr 9MjcbkAvt9/Cxq9M2y+1OySZpB6jw885fJi31cKzkv/ELXSqvTyYY32U9j3EL2zWnVTI TTwtwDjTOw8VYhpShffJSLgKyaKUdggfdcWihsLkP6O43TxK5+dFu1fG8efIUxE8FLve jUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:reply-to:from:date; bh=nmwY4VQRJ9jYi+fOQzEUC8iuaezJtZhV0p9HQo1Qo6I=; b=trhNseU6vMEFZ4T9bGfFq89zs5XO98DuryVWfTHc4mIfwDHejhNAs6l1e2hqxD6RtS uKOUXq6g9CklazZrtf9Vq7xJMKNYTaIHCpQ/AvW/dVdQQGpZO2hqTryhmti1cJf6o5Qg f0SiAwidKP+4tMBRGvOCV2Q6+7r5Vl/4SwSiBEIyZZfFO37vmlfawvxzwgfimogua7jY mO7ttbZcYSEGmq1lu/y/nd1yH13ERdSNpdToKB6XP1hCx/f6tia0cl8PKxfJz7rGnHeT X7DFlQRHiiMjl0vckW6oNkt7jtE3plyGrNi5KCtULDCxxu2RDUb30G6hTbCl+sO90V0J qEYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si6508804ejf.632.2020.09.05.08.56.46; Sat, 05 Sep 2020 08:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728415AbgIEPyp (ORCPT + 99 others); Sat, 5 Sep 2020 11:54:45 -0400 Received: from gw.c-home.cz ([89.24.150.100]:41854 "EHLO dmz.c-home.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgIEPym (ORCPT ); Sat, 5 Sep 2020 11:54:42 -0400 Received: from dmz.c-home.cz (localhost [127.0.0.1]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 085Fpslm003231; Sat, 5 Sep 2020 17:51:59 +0200 (CEST) Received: from localhost (martin@localhost) by dmz.c-home.cz (8.14.4+Sun/8.14.4/Submit) with ESMTP id 085FpmfW003227; Sat, 5 Sep 2020 17:51:48 +0200 (CEST) X-Authentication-Warning: dmz.c-home.cz: martin owned process doing -bs Date: Sat, 5 Sep 2020 17:51:48 +0200 (CEST) From: Martin Cerveny Reply-To: Martin Cerveny To: Corentin Labbe cc: Maxime Ripard , Martin Cerveny , Chen-Yu Tsai , "David S. Miller" , devicetree@vger.kernel.org, Herbert Xu , linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: Re: [PATCH v2 1/3] dt-bindings: crypto: add new compatible for V3s In-Reply-To: <20200902062824.GA17544@Red> Message-ID: References: <20200831073101.3608-1-m.cerveny@computer.org> <20200831073101.3608-2-m.cerveny@computer.org> <20200901093249.orwyc5sr3z2y43fz@gilmour.lan> <20200901105719.GA2639@Red> <20200901114015.qivovvjqvmhkicdl@gilmour.lan> <20200902062824.GA17544@Red> User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 2 Sep 2020, Corentin Labbe wrote: > On Tue, Sep 01, 2020 at 01:40:15PM +0200, Maxime Ripard wrote: >> On Tue, Sep 01, 2020 at 12:57:19PM +0200, Corentin Labbe wrote: >>> On Tue, Sep 01, 2020 at 11:32:49AM +0200, Maxime Ripard wrote: >>>> On Mon, Aug 31, 2020 at 09:30:59AM +0200, Martin Cerveny wrote: >>>>> Like A33 "sun4i-ss" has a difference, it give SHA1 digest >>>>> directly in BE. So add new compatible. >>>>> >>>>> Tested-by: Martin Cerveny >>>> >>>> The Tested-by tag is for the other developpers. You're very much >>>> expected to have tested your patch before contributing it. >>>> >>>>> Signed-off-by: Martin Cerveny >>>>> --- >>>>> .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 5 ++++- >>>>> 1 file changed, 4 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml >>>>> index fc823572b..180efd13a 100644 >>>>> --- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml >>>>> +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml >>>>> @@ -25,6 +25,7 @@ properties: >>>>> - const: allwinner,sun4i-a10-crypto >>>>> - items: >>>>> - const: allwinner,sun8i-a33-crypto >>>>> + - const: allwinner,sun8i-v3s-crypto >>>> >>>> If it's compatible with the A33, why do we need to introduce a new compatible? >>>> >>>>> >>>>> reg: >>>>> maxItems: 1 >>>>> @@ -59,7 +60,9 @@ if: >>>>> properties: >>>>> compatible: >>>>> contains: >>>>> - const: allwinner,sun6i-a31-crypto >>>>> + oneOf: >>>>> + - const: allwinner,sun6i-a31-crypto >>>>> + - const: allwinner,sun8i-v3s-crypto >>>> >>>> I guess the A33 compatible should be on that list as well? >>> >>> This is the list of "need reset". >>> So we cannot use allwinner,sun8i-a33-crypto >>> Probably this explanation should be in the commit message. >> >> But the A33 has a reset in the DTSI >> > > > Oh right so I need to send a fix for that and Martin Cerveny could simply use the "allwinner,sun8i-a33-crypto" (and so keep only patch #1(DTS)) > > Regards > What is "right" solution for DTSI ? - compatible = "allwinner,sun8i-a33-crypto"; OR - compatible = "allwinner,sun8i-v3s-crypto", "allwinner,sun8i-a33-crypto"; (but unimplemented "allwinner,sun8i-v3s-crypto") Regards