Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1924724pxb; Sat, 2 Apr 2022 08:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuSjAmIjuS5m2/pXPORPBCW4fj4uyORyz0yIQ//Nj0pkB+4N5LA6ZZo1bYzVPfBK/AUaba X-Received: by 2002:a17:903:2309:b0:156:137b:8ba5 with SMTP id d9-20020a170903230900b00156137b8ba5mr31453593plh.84.1648913056353; Sat, 02 Apr 2022 08:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648913056; cv=none; d=google.com; s=arc-20160816; b=fStAy9sdLVMN8IcE/aoMml+Wl7o9S4yQKm3Mg2vHuWeQRydVNoruobFxDCBi1EsvA9 zfaK4tde/C5YRZ3vNgaDYcqSzF8IpFbrclF3V62NHSJGMRrf+4+Sx3BpLcLe05wXWh5U J3HQCktHjTYgRvnwOZGl3oN9ETVfnV7VRKefAY59q0qS5XD9XRYy+FNT6bLiHC7/MeCe TmrAHH+sp0Moeg9LAicS4QwGfWJBiLfZ36RXoRfydSZZ37/pC8IHC9NsGgxD9qmDYytM TWMwbO/6/UWxOQfZh8cBqYdzF/zoJS0mVhJc+oCjJI+ECG5bXpVDHHaaxwyJzXAqYPET 8y/w== 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=tWegABcqL32JHQCEXG4tw1Wn/lH2n3sQgzMVGFju1Cs=; b=nx5oS0BtrA45EFmz53Ijfo3RALTnTlkHlUQNuZIm3oeMzMMegzE2tpXPIA8iU2t/g6 EFu+lFwA7jhtB/KSe6dpaPiAILjChJk2jmpJobu6kP8MiuagfFDoJ9QKTTGa3Zu0fjL6 zSVAPnzqqmUVPWWWcjDqDRpU1tbxzYcdVWr9dE5Epfe7MQ6bgkqS63UAXK9eIlqK0cw+ 9U3LDppsidps0I80G8EE8wbo5cGCplciRgywMtS7gGdZa5XWWWDDhfjHdn7NNIf5NuJj 12m4YSAgnQ1HMyFxuPnqRC6iwkePlw1TccMrLZv3SDnt7zWHUBODpsjlUQjToP7N/PSY VDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HwCMC7Fs; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 t13-20020a6564cd000000b00398db25cde9si5136295pgv.226.2022.04.02.08.23.54; Sat, 02 Apr 2022 08:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=HwCMC7Fs; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S241863AbiDBMJW (ORCPT + 99 others); Sat, 2 Apr 2022 08:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233860AbiDBMJW (ORCPT ); Sat, 2 Apr 2022 08:09:22 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086FD16F046 for ; Sat, 2 Apr 2022 05:07:30 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id d7so7669154wrb.7 for ; Sat, 02 Apr 2022 05:07:29 -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=tWegABcqL32JHQCEXG4tw1Wn/lH2n3sQgzMVGFju1Cs=; b=HwCMC7Fs6Qb2QuSS8MU8sCLzdNl7szuWzkPtuaSXnBrOLarJ3PbGvfeLwluwcvbANo wMeuL2E4kruh+TfEEIyAO+P/tPVOsdKkwv0GKef9xJBdpCY3yYVDyE1L8lIFXocAkmWa 9tjAMMQNnX6hwP430p/DwN6j1VFyaC5J7U5KynJLlBn3Pf723UmxBlrhB4ow3rWX6mMh +ZII1a4q5/NtTYGYtPV9dvMLGJmizPNEygoNv47iawEG30LTay2GZbInsZdsPB2iXvxe MrqKuRrDzDCh5aOQzqtKvbTf1qy5mz+QD1+tajr1b/TCD2rcWcluptG0Z591lj3JrUUI YShw== 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=tWegABcqL32JHQCEXG4tw1Wn/lH2n3sQgzMVGFju1Cs=; b=68TmMTZfKUwFCQlC9oHgcKpbR0LfhTzVDTPbuuEaYmH0DlS+RIdvSz2ZtilChPqgLc rR2IbjqNblFsrwm+Xk43RpiddyeT+L59e2mHRNEyuNavJgz830QRzjmq+Y1SUJesWN5v iy99xrVzIrydTLWBsm8aki+MZfM9SMzYMwo4kqnvouClvJCECPKwg9ZwPuzwOsGymUvS br3Seh+iAh32UeI3hMxGTMx6mBX5zEyC+TI4t8gSy9w/WD36ux7kKBaitX/mFk+JGN34 uVIgI00seMWJV2VxRa/pDs0AGzoyf6yYSEj1CJR2urwOj0I6UQ3dCO2Y9ahL6MH0FHTz U9Iw== X-Gm-Message-State: AOAM531HLmTBdJlgdtIiyKuiNd3NlNaeRmmKfItOfR/B4N2YtU763/ow qGxuAeRH5A6ePeemG76ND9t2rA== X-Received: by 2002:a5d:6dae:0:b0:205:dfbd:789f with SMTP id u14-20020a5d6dae000000b00205dfbd789fmr10672074wrs.142.1648901248486; Sat, 02 Apr 2022 05:07:28 -0700 (PDT) Received: from [192.168.0.171] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id e13-20020a05600c4e4d00b0038e44e316c1sm6356644wmq.6.2022.04.02.05.07.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Apr 2022 05:07:28 -0700 (PDT) Message-ID: Date: Sat, 2 Apr 2022 14:07:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 28/33] dt-bindings: crypto: rockchip: convert to new driver bindings Content-Language: en-US From: Krzysztof Kozlowski To: Corentin Labbe , heiko@sntech.de, herbert@gondor.apana.org.au, krzk+dt@kernel.org, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org References: <20220401201804.2867154-1-clabbe@baylibre.com> <20220401201804.2867154-29-clabbe@baylibre.com> <30305936-4b69-e1ce-44c2-0d1d113b460e@linaro.org> In-Reply-To: <30305936-4b69-e1ce-44c2-0d1d113b460e@linaro.org> 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=unavailable 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-crypto@vger.kernel.org On 02/04/2022 13:53, Krzysztof Kozlowski wrote: > On 01/04/2022 22:17, Corentin Labbe wrote: >> The latest addition to the rockchip crypto driver need to update the >> driver bindings. >> >> Signed-off-by: Corentin Labbe >> --- >> .../crypto/rockchip,rk3288-crypto.yaml | 68 +++++++++++++++++-- >> 1 file changed, 63 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml >> index 66db671118c3..e6c00bc8bebf 100644 >> --- a/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml >> +++ b/Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml >> @@ -11,8 +11,18 @@ maintainers: >> >> properties: >> compatible: >> - enum: >> - - rockchip,rk3288-crypto >> + oneOf: >> + - description: crypto IP present on RK3288 SoCs >> + items: >> + - const: rockchip,rk3288-crypto >> + - description: crypto IP present on RK3328 SoCs > > These two comments are not helping, so this should be just enum. > >> + items: >> + - const: rockchip,rk3328-crypto >> + - description: crypto IPs present on RK3399. crypto0 is the first IP with >> + RSA support, crypto1 is the second IP without RSA. > > The second part of this comment is helpful, first not. You have chosen > enum in your first patch, so just extend it with comments. Additionally > indexing does not scale. What if next generation reverses it and crypto0 > does not have RSA and crypto1 has? Actually let me re-think this. Is programming model (registers?) same between crypto0 and crypto1? If yes, this should be same compatible and add a dedicated property "rockchip,rsa"? I looked at your driver and you modeled it as main and sub devices. I wonder why - are there some dependencies? It would be helpful to have such information here in commit msg as well. Your commit #26 says that only difference is the RSA. Best regards, Krzysztof